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
AuthenticationProtocolHandler unable to parse Digest WWW Header #1555
Comments
What version of Jetty Client? |
9.4.5.v20170502 |
We assume that the server replies with the |
I don't think thats the only problem: Tested it also with the correct order: https://regex101.com/r/71olOo/1 |
Once you remove the double backslashes, works for me. |
Any update on this? I am also running into the issue where "realm" is not the first parameter in the authentication response. Is there a workaround? |
Writing a parser for the |
… to appear as first parameter. jetty#1555 Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
See also #1730. |
…ticationProtocolHandler Issue #1555 WWW-Authenticate realm header ordering
Better parser is in #2449. As that is essentially a better fix for this issue, let's leave this open until that is merged. |
…y/jetty.project#1555 . Current jetty version does not provide this
Hey,
I am having massive problems trying to authenticate against a digest auth endpoint.
For testing purposes i use http://httpbin.org/digest-auth/auth/user/passwd/MD5
That returns a WWW Header of:
Digest algorithm=MD5, qop="auth", opaque="c0c3e9b6dfa9fcbcefe9a64e8a5d1c0e", nonce="e3bcda70806caad3ebdf4e8078cbcf6b", realm="me@kennethreitz.com"
But this results in the exception:
org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
The problem IMO is, that the regex parsing the WWW header in AuthenticationProtocolHandler won't match that header.
What can i do and are there any known workarounds?
For completness here is my code:
The text was updated successfully, but these errors were encountered: