-
Notifications
You must be signed in to change notification settings - Fork 119
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
auth
: Support digest auth
#19
Comments
@wojtekmach Trying to get my feet a bit wet, so I started thinking through this earlier today and wanted to run my thoughts by you. Digest auth works first by issuing an unauthenticated request, receiving a 401, and then re-issuing the request with an authentication header setup using information in the 401 response header. Given this, I’d expect this to be implemented as an error step before the retry step. This digest auth error step would check that:
If any of those conditions aren’t met, we pass the request/error along to the next step, which would be retry in the default case and can determine whether to retry/etc. If this seems like the appropriate way to handle it, I have a couple of questions:
|
Re A) yup, option 1, except it would be a response step. An error step would be when we didn’t get a response but a socket error and such. Re B) I think it is actually a good enough reason not to support it. What I mean is, if someone needs it and is willing to do the work then I’d accept a PR but otherwise it is not a high priority. I wanted to have it for completeness but you are totally right it is mostly a thing of the past. thanks! |
Sounds good! Agreed that it’s not a priority. It may be something I look to implement anyways as a small exercise. =) |
curl example:
We should support:
The text was updated successfully, but these errors were encountered: