-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Enhancement: Multiple custom authorization headers in Swagger UI #642
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
Comments
Sorry, your issue is not clear. Are you suggesting a change in the specification? If so, which one? |
I am suggesting a better way to define custom headers for spec. The latter is though more Swagger-UI specific, how to represent that in UI. Maybe even own section for defining possible headers for API requests? |
I try to remember edit the issue description tomorrow morning. I am on mobile currently. |
How is that different than specifying API keys? Granted, the name of the authorization scheme should probably change, but other than that it does what you want? |
@webron I get the functionality that I want by adding multiple "apiKey" type headers. So no actual difference there. Maybe if I could define securityDefinition type "customAuth", and include definitions of those two headers to that? How does that sound? Though we come then to the question if it's necessary for OpenAPI specification to support custom authorization schemes, it's up to you :) |
Behaviour

## Suggestion - New type "customHeader" - Button texts "Authorize" -> "Attach/Detach"Overall functionality works, but when there are multiple custom headers, the name "apiKey" is not clear in user perspective.
The text was updated successfully, but these errors were encountered: