-
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
Schema is not reloaded on OAuth2 Authorization #1190
Comments
yes it should reload. not exactly sure why. I have only tested this for non-oauth cases myself.
|
Wow, you respond faster than I anticipated. 😄 I am able to authorize and reload with other authorization methods, but not with OAuth I have solved this for myself by customising the swagger_ui plugin and adding an additional actionwrapper:
|
Excellent! Of course they used another method. doh. Do you want to make a PR or should I add it when I come around to it? |
I'll make a PR right away |
…zation Add a specific Action Wrapper for OAuth Authorization requests #1190
Describe the bug
I am running:
I have configured drf-spectacular to authorize with OAuth2, which appears as an option in the Swagger-ui authorize popup.
However, after authorizing, the schema is not reloaded.
To Reproduce
my spectacular settings are as follows:
Expected behavior
I expect the schema to reload after authenticating successfully with OAuth2 as per the
reloadSchemaOnAuthChange
pluginThe text was updated successfully, but these errors were encountered: