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

How am I supposed to do basic auth? #40

Open
tigrankhachikyan opened this issue Dec 25, 2019 · 1 comment
Open

How am I supposed to do basic auth? #40

tigrankhachikyan opened this issue Dec 25, 2019 · 1 comment

Comments

@tigrankhachikyan
Copy link

say I have security spec in swagger like

  "securityDefinitions": {
    "www-authenticate": {
      "type": "basic",
    }
  }

And it is used in the endpoints like

        "security": [
          {
            "www-authenticate": []
          }
        ]

How do I supposed to send the username/password (test:test)?
I've tried all the below options and nothing is working

set-auth www-authenticate test:test
set-auth www-authenticate dGVzdDp0ZXN0
set-auth www-authenticate Basic dGVzdDp0ZXN0
set-auth www-authenticate 'Basic dGVzdDp0ZXN0'
set-auth www-authenticate 'Authorization: Basic dGVzdDp0ZXN0'
@tigrankhachikyan
Copy link
Author

I have fixed it in my local fork:
tigrankhachikyan@3c0a028

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

1 participant