-
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
Implement Authentications for Swagger 2.0 #764
Comments
We'll be letting the spec determine what security definitions are supported, and the UI will reflect it in 2.1.0-M1. |
👍 |
Moving to M2 |
We can keep the header the way it is and detect a colon in the field. If that's present we use that for basic auth. ( What do you think @fehguy |
I think we hit this up over IRC, but my preference is as follows:
After applying, the window.swaggerUi.authorizations will be updated. |
I'm confused by the comments here. The original issue seems to request basic auth for downloading the swagger spec (which we would definitely like to have). but the comments seems to imply determining the security available based on the swagger spec (which wouldn't yet be available)... am i misunderstanding something? |
Seems like this keeps getting kicked down the road. Is anyone working on this at all? Edit to add: I managed to get things working without changing much. It seems that either I misunderstood the documentation or the documentation needs a little improvement. I'll see if I can find some way of describing the pieces that finally clicked in place for me to understand what needed to be done. |
See 2.2.1, this is now all dynamic. |
In the swagger-ui default index.html page, it would be great if we can switch to/from the defaut api_key input text field to username/passwaord inputs to allow basic auth. It's only possibile to use ApiKeyAuthorization. A
<select>
would be great to switch between ApiKeyAuthorization and PasswordAuthorization with something like this :The text was updated successfully, but these errors were encountered: