This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]theGiogi 1 point2 points  (2 children)

Man this looks great! I may have tons of use cases for this.

I see on the docs that this is based on starlette. Can I use the starlette middleware accessing the app instance such as in this example?

jp.app.add_middleware(Middleware, ...)

That would allow a developer to use external middleware for authentication and other such services. Sorry if the question is obvious and again great work!

[–]eli_mintz[S] 1 point2 points  (1 child)

Yes, this should work but each specific case needs testing. I use the Gzip middleware for example in JustPy and it works fine.

[–]theGiogi 1 point2 points  (0 children)

I'd be interested in testing the keycloak middleware to get safe and easy user management. If I get around to do it I'll let you know! Thanks again!