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

HTTPClient force_basic_auth setting. #47

Merged
merged 1 commit into from
Apr 3, 2017

Conversation

pacoguzman
Copy link
Contributor

This setting is relevant when in an application that uses Almodovar and uses Webmock (>= 2.0) as http mocking library you want to ensure you’re providing proper authorisation headers on your test.

With this HTTPClient will send authorisation headers in every requests and not only as a response to a 401 status code from the server (that probably during your test is something you’re not setting).

FYI: nahi/httpclient@5be11cb

This setting is relevant when in an application that uses Almodovar and uses Webmock (>= 2.0) as http mocking library you want to ensure you’re providing proper authorisation headers on your test.

With this HTTPClient will send authorisation headers in every requests and not only as a response to a 401 status code from the server (that probably during your test is something you’re not setting). 

FYI: nahi/httpclient@5be11cb
@AlfonsoUceda
Copy link
Contributor

@pacoguzman thanks for this PR, where are we going to use this? Just to know more about the context

@pacoguzman
Copy link
Contributor Author

Basically if we want to ensure we're providing proper authorization headers in any project that uses Almodovar > 1.2 and Webmock > 2.0 (there is an issue already opened about this problem on some apps)

@AlfonsoUceda
Copy link
Contributor

@pacoguzman 👍 go ahead :)

Copy link
Member

@maxcosworth maxcosworth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pacoguzman, LGTM 👍

@AlfonsoUceda AlfonsoUceda merged commit 20a623f into master Apr 3, 2017
@AlfonsoUceda AlfonsoUceda deleted the force_basic_auth_config_flag branch April 3, 2017 15:03
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