Skip to content

Never prompted for authentication #3774

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

Closed
masterof0 opened this issue Oct 17, 2017 · 5 comments
Closed

Never prompted for authentication #3774

masterof0 opened this issue Oct 17, 2017 · 5 comments

Comments

@masterof0
Copy link

I am currently set up for basic auth. When I test any of the endpoints, I get a 401 and am never prompted for credentials. If I run Chrome with --disable-web-security, I am prompted as expected.
This also holds true for Firefox

I originally noticed this problem, but attributed it to CORS, but I think I have that issue resolve (no errors) but the authentication issue still persists

Q A
Bug or feature request? Bug
Which Swagger/OpenAPI version? 3.X
Which Swagger-UI version? 3.X
How did you install Swagger-UI? git clone
Which browser & version? Chrome 61, Firefox 56
Which operating system? Windows 10

Spec
https://gist.github.com/masterof0/46dd46da6415e7f8ffd36c3de22fdc64

auth

@webron
Copy link
Contributor

webron commented Oct 17, 2017

It's unclear at what point the basic auth is set up for - is it to load the UI? the API definition? executing a call?

@masterof0
Copy link
Author

masterof0 commented Oct 17, 2017

Apologies. When executing an API call.

If i launch chrome with --disable-web-security, and execute one of hte calls, I am prompted for my creds. If I launch chrome (or firefox) normally, I am never prompted for credentials

2017-10-16_21-54-43

@webron
Copy link
Contributor

webron commented Oct 17, 2017

The current version of Swagger-UI doesn't support authentication at all for 3.0.0 call executions. You can see that it's in our #3641 ticket. This feature is slated to be implemented and pushed by the end of the week.

@masterof0
Copy link
Author

Apologies for the redundant ticket. Thank you

@webron
Copy link
Contributor

webron commented Oct 17, 2017

No worries. It's better to get too many reports than no reports at all. Can never know when we might miss something. I'll be closing the ticket for now, but keep an eye out for this week's release!

@webron webron closed this as completed Oct 17, 2017
@lock lock bot locked and limited conversation to collaborators Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants