-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Basic authentication header not send through "Try it out" operation #2075
Comments
Security definitions declare "what" security exists. It doesn't say "where" to apply them. Add a "security" attribute with the name of the scheme (login in your case) on the operations which require it. |
There is already a "security": [
{
"login": []
} |
@fehguy - I've asked @gabriel-detassigny to open this ticket coming from another one. Tested it and it indeed doesn't work. |
I have the same problem when using the latest master version. Clicking the "Try it out!" button doesn't send the Authorization header that was set using the form. |
OK I've reproduced this. Looks like the security is named |
… configured value
… configured value
… configured value
i have same problem when using swagger ui 3.0.18. Clicking the "Excute" button doesn't send the Authorization header that was set using the form. |
I'm experiencing this same problem in v3.1.7. @sontrananh, were you able to find a workaround? |
Commenting on a closed ticket that was opened on an entirely different version of the project - isn't going to help. If you have an issue, please open a new ticket. |
@toddsingleton: i had that problem because i deploy swagger in a server but i deploy service in another server with different ip. And i disable csrf check of browers to fix it |
… configured value
Hi,
I was trying to use Basic Authentication in Swagger-UI, using the latest master version.
The
Authorize
button works fine : it shows me a form for basic authentication to set username and password.However, when I try API endpoints with the "Try it out" button, it doesn't send the corresponding
Authorization
HTTP header. Am I doing anything wrong? My spec seems ok as far as I can tell.Please let me know if you need any more details!
The text was updated successfully, but these errors were encountered: