-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Swagger UI pre-authorization #278
Comments
i was not aware of this feature. we currently do not support call-back setttings for swagger ui, just simple settings. https://drf-spectacular.readthedocs.io/en/latest/settings.html#example-swaggerui-settings however, there is the SwaggerUI setting |
sry... i mistyped the issue number. this is unrelated |
Yup, |
Another option for anyone who comes across this issue is automatically configuring the session cookie authentication if a user has logged in: #1099 (comment) |
When developing locally on an API that has token or API key based authentication, I would like to not have to fill in my API Key every time I use Swagger UI.
Swagger provides this using the preauthorizeApiKey (I believe), but it doesn't seem possible to do locally:
https://stackoverflow.com/questions/45199989/how-do-i-automatically-authorize-all-endpoints-with-swagger-ui/50181701#50181701
The text was updated successfully, but these errors were encountered: