Skip to content

Jwk thumbprint fix #17080

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
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

dkowis
Copy link

@dkowis dkowis commented May 8, 2025

This is the proper implementation for a JWK Thumbprint. Spring Security was doing a Certificate Thumbprint, which is correct for ath claims to verify the certificate used in the JWK, but it's not correct for a DPoP verification jkt claim.

Resolves #17079

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 8, 2025
@dkowis dkowis force-pushed the jwk-thumbprint-fix branch from 37b16fa to 4d330cf Compare May 8, 2025 17:36
dkowis added 2 commits May 8, 2025 12:37
Just used the nimbus JOSE library to do it, because it already has a
compliant implementation.

Signed-off-by: David Kowis <david@kow.is>
The other method remains for the `ath` claims

Signed-off-by: David Kowis <david@kow.is>
@dkowis dkowis force-pushed the jwk-thumbprint-fix branch from 4d330cf to 45f5232 Compare May 8, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DPoP JWK Thumbprint validation does not conform to RFC7638
2 participants