Skip to content

Support Digest authentication with SHA-256 #13127

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

Open
sbordet opened this issue May 12, 2025 · 3 comments
Open

Support Digest authentication with SHA-256 #13127

sbordet opened this issue May 12, 2025 · 3 comments

Comments

@sbordet
Copy link
Contributor

sbordet commented May 12, 2025

Jetty version(s)
12.1.x

Enhancement Description
RFC7616 now specifies that Digest authentication can be performed with SHA-256 (was MD5 only before).

Jetty's client can already support that, but on the server the MD5 algorithm is hardcoded, while should be configurable.

@zzzi2p
Copy link

zzzi2p commented May 13, 2025

I was invited to submit a PR for this based on my code at https://github.com/zzzi2p/jetty-multiauth . Unfortunately I won't be able due to lack of time and ability to test because my project is on 9.3/9.4. So I offer my code for some motivated person to adapt into a PR.

My class is an all-in-one authenticator that does SHA256, MD5, and Basic, if enabled. A couple things to consider:

@joakime
Copy link
Contributor

joakime commented May 13, 2025

@zzzi2p
Copy link

zzzi2p commented May 13, 2025

of course; we're on it for Java 8 support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants