Skip to content

Never prompted for authenticationย #3774

Closed

Description

@masterof0

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

Activity

  1. webron commented on Oct 17, 2017

    @webron
    Contributor

    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?

  2. masterof0 commented on Oct 17, 2017

    @masterof0
    Author

    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

  3. webron commented on Oct 17, 2017

    @webron
    Contributor

    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.

  4. masterof0 commented on Oct 17, 2017

    @masterof0
    Author

    Apologies for the redundant ticket. Thank you

  5. webron commented on Oct 17, 2017

    @webron
    Contributor

    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!

  6. locked and limited conversation to collaborators on Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions