Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Issue with rendering multiple api key in angular-swagger-ui #86

Closed
nijinillath opened this issue Dec 19, 2017 · 3 comments
Closed

Issue with rendering multiple api key in angular-swagger-ui #86

nijinillath opened this issue Dec 19, 2017 · 3 comments
Labels

Comments

@nijinillath
Copy link

Hi Team,
I have more than one api key in my request and they are added in the security element in swagger. While rendering it in angular swagger UI the api authorization are getting clubbed together and the values are not getting assigned properly(only taking the last value provided for all the api key) , also the window is getting closed every time the authorize button is pressed and have to click each time to input api key value.
Is there a better way to render multiple api key ?
Attaching my sample swagger json thanks in advance !!
multipleAPIKeySwagger.txt

@mathieuales
Copy link
Collaborator

Hi !
At this time there is no way to render multiple API keys.
What you can do is writing a module to manually add headers to requests done by API explorer: https://github.com/Orange-OpenSource/angular-swagger-ui#writing-your-own-modules
Have a look at BEFORE_EXPLORER_LOAD
I'll fix this asap

Regards

@nijinillath
Copy link
Author

Thanks Mathieuales , will check on the custom module.
Do let us know once the fix is also available.

Regards !!

@mathieuales
Copy link
Collaborator

Fixed in version 0.5.5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants