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

Start the nonce count with value 1 #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paulvt
Copy link

@paulvt paulvt commented Mar 21, 2018

The nounce count contains the number of times the client has sent the nonce value in the request (see Section 3.2.2 of RFC 2617). This should start with 1 because the initial request contains the value.

Also, IIS 10.0 seems to ignore requests where nonce count is 0 and resends a "HTTP 401 Authorization Required" response.

The nounce count contains the number of times the client has sent the nonce
value in the request (see Section 3.2.2 of RFC 2617).  This should start
with 1 because the initial request contains the value.

Also, IIS 10.0 seems to ignore requests where nonce count is 0 and resends
a "HTTP 401 Authorization Required" response.
@paulvt
Copy link
Author

paulvt commented Mar 21, 2018

@paulvt paulvt mentioned this pull request Mar 21, 2018
@stormsilver
Copy link

This fixed an issue for me trying to talk to the MongoDB Atlas API. It would not authenticate until I used this patch. Do recommend merging.

@p-mongo
Copy link

p-mongo commented Apr 28, 2020

Also ran into this issue, is this project maintained?

p-mongo pushed a commit to p-mongodb/faraday-digestauth that referenced this pull request Apr 28, 2020
@paulvt
Copy link
Author

paulvt commented Apr 28, 2020

@p-mongo It doesn't seem like it. I am using a locally patched gem as a result, unfortunately.

p-mongo pushed a commit to p-mongodb/faraday-digestauth that referenced this pull request Sep 12, 2020
p-mongo pushed a commit to p-mongodb/faraday-digestauth that referenced this pull request Sep 12, 2020
* speedup-auth-fix:
  rubocop
  Squelch rubocop complaints
  Reuse server nonces and account for drbrain/net-http-digest_auth#17

* require-user-and-pass:
  Require username and password to be not nil
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.

3 participants