Option to add additional auth headers? #363
-
Hello, I have looked through the documentation, and can't seem to find anywhere where you can define custom headers? Currently our api is secured using a combination of custom headers namely 'x-api-key' and 'x-api-secret'. I am able to add a single header with the open the following code:
but I need to be able to add a second header 'x-api-secret'. Any suggestions? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Hey @qLutCh55 Any chance you can show me the expected OpenAPI document for your auth setup? Based on that I will be able to help with Scramble's setup. |
Beta Was this translation helpful? Give feedback.
-
Hey @romalytvynenko I was trying to get something like this right: or But the idea is that I need more than 1 security header for requests. With the above code, it only takes the first header and ignores the second one. Regards |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if it is supported by Open API specification itself. It just seemed to be the closest implementation I could find in the docs for security for the purpose of our project. If you could point me in another direction, I would greatly appreciate it. |
Beta Was this translation helpful? Give feedback.
-
@giggsey @lord-obinna @qLutCh55 Scramble now (v0.12.7) supports this! https://scramble.dedoc.co/usage/authentication#complex-authentication-scenario |
Beta Was this translation helpful? Give feedback.
@giggsey @lord-obinna @qLutCh55
Scramble now (v0.12.7) supports this!
https://scramble.dedoc.co/usage/authentication#complex-authentication-scenario