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

Update http to support Authorization in header #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

levensailor
Copy link

Add Authorization option in ctx setup and handling in http module

Added Basic Authentication in "Authorization: Basic <base64 hash of user:pass>"
Added examples of Basic Authentication via Auth Token
@levensailor
Copy link
Author

Using this on one of my projects and had to edit a bit since SOAP is not much of a standard, any options i add, i'll pull into here

@chrisgh1
Copy link
Contributor

@levensailor
Looks like you have a minor error in your readme.md file.
authorization: "Basic: "+authToken"

I think you wanted it to be:
"Basic: " + authToken

PS thanks for the update hopefully @yaronn will merge your changes.

@chrisgh1
Copy link
Contributor

Just wanted to also put this here that using the format http://username:password@somedomain.com in the ctx json for the url element may be all that is needed for basic auth. still wouldn't hurt for @levensailor commit to be merged into the project.

@jbaris
Copy link

jbaris commented May 12, 2020

+1 for this PR

@levensailor
Copy link
Author

fixed the formatting

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

Successfully merging this pull request may close these issues.

None yet

3 participants