apiKey pairs not represented well in UI
See original GitHub issueWhen using apiKey pairs as per: https://swagger.io/docs/specification/authentication/api-keys/
Or in the case of my config below, the Swagger UI still continues to show the two keys as seperate authorizable entries rather than an AND case as they should be handled.
"securityDefinitions": {
"username": {
"type": "apiKey",
"name": "X-Username",
"in": "header"
},
"key": {
"type": "apiKey",
"name": "X-ApiKey",
"in": "header"
}
},
"security": [
{
"username": [
],
"key": [
]
}
]
Experiencing this with the latest version as of posting.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Set up API keys using the API Gateway console
In Create API Key, do the following: Enter an API key name (for example, MyFirstKey ) in the Name input field.
Read more >VerifyAPIKey policy | Apigee Edge
The Verify API Key policy lets you enforce verification of API keys at runtime, letting only apps with approved API keys access your...
Read more >Step 6: The security object (OpenAPI tutorial)
Swagger UI supports four authorization schemes: API key; HTTP; OAuth 2.0; Open ID Connect. In this step of the OpenAPI tutorial, we'll use...
Read more >Unable to resolve " not a valid key=value pair (missing equal ...
I had faced the same issue. For me, the issue was due to a case-sensitive url. Please make sure, the spelling and the...
Read more >API keys vs JWT authorization: Which is best? | Algolia Blog
JWT authorization not only adds an additional level of security (more ... Here's an example of a publicly available API key in client-side ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is not fixed… #4545 and #6155 are closed… The UI still shows
A or B
the same wayA and B
Tested with swagger-ui-3.36.0.zip
Any updates?