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

Support JWS jwk header in JWT Build API #770

Closed
sberyozkin opened this issue Mar 14, 2024 · 0 comments · Fixed by #772
Closed

Support JWS jwk header in JWT Build API #770

sberyozkin opened this issue Mar 14, 2024 · 0 comments · Fixed by #772

Comments

@sberyozkin
Copy link
Contributor

https://datatracker.ietf.org/doc/html/rfc7515#section-4.1.3

Starting with

Jwt.claim("a", "b").jws().jwk(evidencePublicKey).sign();

Should produce a jwk header, as an RSA or EC public key representation.

Probably

Jwt.sign("evidence", List.of(evidencePublicKey));

Should produce a claim evidence containing a single array with jwk.

Main motivation is to support testing DPoP use cases but also to support other prod and test cases as needed.

I'll do a release once this issue is resolved

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 a pull request may close this issue.

1 participant