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

Add support for more JWT headers #41

Open
andra1782 opened this issue Jul 31, 2024 · 1 comment
Open

Add support for more JWT headers #41

andra1782 opened this issue Jul 31, 2024 · 1 comment
Labels

Comments

@andra1782
Copy link

Is your feature request related to a problem? If so, provide a description of the problem.
I am currently working on migrating an internal library handling JWT in Java from nimbus-jose to Tink. We are using Tink keysets and primitives, but some of our partners require certain headers (cty, crit, x5c, x5t256, b64, as well as custom ones).

What sort of feature would you like to see?
I know Tink only supports typ, alg and kid, but is there a chance that more will be added in the future? If not, do you see an alternative way to use Tink primitives for JWT signatures given that these headers are required?

@andra1782 andra1782 changed the title JWT headers Add support for more JWT headers Jul 31, 2024
@juergw
Copy link
Contributor

juergw commented Aug 15, 2024

We don't have any plans to add additional support for these headers.

You could use Tink's signature primitives (PublicKeySign and PublicKeyVerify) or the Mac primitive together with a JSON parser to implement this yourself. But I wouldn't recommend this. Instead, I think it is preferable to keep using a different JWT library that supports these options.

@juergw juergw removed their assignment Aug 28, 2024
@juergw juergw added the p3 label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants