Skip to content

Support for OpenAPI authentication documentation #1813

Answered by Goldziher
ctrl-Felix asked this question in Q&A
Discussion options

You must be logged in to vote

the AbstractAuthenticationMiddleware is an abstract class that needs to be implemented in a concrete way. Once you implement an authentication backend, you can configure your openapi specs to include authentication documentation for this.

An example of how to do this can be found here: https://github.com/litestar-org/litestar/blob/main/litestar/contrib/jwt/jwt_auth.py#L68

There is no way for us to automagically know what you implemented.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ctrl-Felix
Comment options

@Goldziher
Comment options

Answer selected by JacobCoffee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants