Skip to content

Conversation

@lovelydinosaur
Copy link
Contributor

Closes #1234 by correctly treating WWW-Authenticate headers as possibly occurring multiple times, and only dealing with “Digest” headers, and just ignoring other types of authentications.

Copy link
Contributor

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

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

Good catch! I had not realized either that two Auth headers were being sent back. :-)

auth = DigestAuth(username="tomchristie", password="password123")
auth_header = b"Token ..."

client = Client(
Copy link
Contributor

Choose a reason for hiding this comment

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

CI is failing, I guess this should be httpx.Client?

@lovelydinosaur lovelydinosaur added the bug Something isn't working label Sep 1, 2020
@lovelydinosaur lovelydinosaur merged commit 33d339a into master Sep 1, 2020
@lovelydinosaur lovelydinosaur deleted the handle-multiple-auth-headers branch September 1, 2020 13:08
@lovelydinosaur lovelydinosaur mentioned this pull request Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auth fails for responses that include multiple WWW-Authenticate headers.

3 participants