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

support sending ApiKey as Basic Auth #53

Closed
sclasen opened this issue Aug 24, 2012 · 3 comments
Closed

support sending ApiKey as Basic Auth #53

sclasen opened this issue Aug 24, 2012 · 3 comments

Comments

@sclasen
Copy link

sclasen commented Aug 24, 2012

Unless I cant see quite how to do it, I think there should be a way to configure sending the api key as a proper base 64 encoded basic auth header, for those apis that work in that manner.

@rintcius
Copy link
Contributor

I created a pull request in swagger.js that enables setting headers globally. See swagger-api/swagger-js#4

@ayush ayush closed this as completed in 1379f7a Aug 31, 2012
@ayush
Copy link
Contributor

ayush commented Aug 31, 2012

thanks @rintcius Also updated readme

@rintcius
Copy link
Contributor

hi @ayush Maybe also mention that in order to use these headers this also needs to be set:

supportHeaderParams: true

vincent-zurczak pushed a commit to roboconf/swagger-ui that referenced this issue Aug 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants