-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Switching between swagger APIs in top bar does not reset Authorization #5540
Comments
Good point! I agree we should be flushing auth data when the definition URL changes. |
Any progress? |
Have added the auth data flush on url change with #7046. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Q&A (please complete the following information)
Content & configuration
Configuration of the https://petstore.swagger.io/ example
Describe the bug you're encountering
When switching between swagger doc APIs via the topbar (input or dropdown), the Authorization is not reset.
So the user provided Authorization information for the first API will be sent to the second API if the user makes an API request on the second API.
This only happens if the Authorizations of the two APIs have the same name. In the example steps below this name is
api_key
.In this case I log into the Petstore example, and after switching the API this information is still preserved and sent with every request made.
To reproduce...
Steps to reproduce the behavior:
api_key
with some gibberishapi_key
but for the wrong APIExpected behavior
Either:
Or (preferred):
urls
parameter in theSwaggerUIBundle
with a specific set of specs the user can switch back and forth between the specs but is still authorized correctly for each API.Additional context or thoughts
Edit: Accidentally deleted the Gist, therefore updated the links to a new one
The text was updated successfully, but these errors were encountered: