question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

apiKey pairs not represented well in UI

See original GitHub issue

When 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.

image

"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:open
  • Created 6 years ago
  • Reactions:3
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kernellpaniccommented, Oct 26, 2020

This is not fixed… #4545 and #6155 are closed… The UI still shows A or B the same way A and B

security:    # A OR B
  - A
  - B
security:    # A AND B
  - A
    B

Tested with swagger-ui-3.36.0.zip

0reactions
davidivkoviccommented, Aug 24, 2022

Any updates?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found