Skip to content
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

Multiple security headers not displayed in curl examples #366

Closed
deka opened this issue Oct 21, 2022 · 3 comments
Closed

Multiple security headers not displayed in curl examples #366

deka opened this issue Oct 21, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@deka
Copy link

deka commented Oct 21, 2022

Hi,
I'm trying to define JWT and API key security.
Only first security schemes is displayed ith bump preview
My spec looks like :

...
 "components": {
    "securitySchemes": {
      "my_jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "my_api_key": {
        "type": "apiKey",
        "name": "Ocp-Apim-Subscription-Key",
        "in": "header"
      }
    }
}
...
...
"security": [
    {
      "my_jwt": [],
      "my_api_key": []
    }
  ]
...

Actual result :

curl \
 -X GET https://{uri} \
 -H "Authorization: Bearer $ACCESS_TOKEN"

Expected :

curl \
 -X GET https://{uri} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Ocp-Apim-Subscription-Key: $API_KEY"
@paulRbr
Copy link
Member

paulRbr commented Oct 24, 2022

Hi @deka,

Thanks a lot for the feedback. We are taking a look on this and will let you know how to fix this as soon as possible.

@paulRbr paulRbr added the bug Something isn't working label Oct 27, 2022
@paulRbr
Copy link
Member

paulRbr commented Nov 2, 2022

Hello @deka,

sorry for the late reply. We have deployed a fix for this issue on bump.sh. Can you let me know if the result suits you?

Thank you 🙂

@deka
Copy link
Author

deka commented Nov 4, 2022

Thanks @paulRbr, it works as expected.
Regards

@deka deka closed this as completed Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants