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 to use basic auth that is part of URL #77

Open
ASaiAnudeep opened this issue Sep 12, 2021 · 3 comments
Open

How to use basic auth that is part of URL #77

ASaiAnudeep opened this issue Sep 12, 2021 · 3 comments

Comments

@ASaiAnudeep
Copy link

How can we pass basic auth credentials as part of the request url?

Example:

https://admin:[email protected]/basic_auth

const p = require('phin');

await p({
  url: 'https://admin:[email protected]/basic_auth',
  method: 'GET'
})
@ethan7g
Copy link
Owner

ethan7g commented Sep 12, 2021

I'll do some research, create a test case, and get back to you on this.

@ASaiAnudeep
Copy link
Author

We need to handle it in centra in this way - https://stackoverflow.com/a/11853077/5401310

@AlexeyCL
Copy link

@ASaiAnudeep you can look at my issue, I added the workaround, and it works for me.

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