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

base64 Url-Safe value for k #419

Open
gam04 opened this issue May 19, 2023 · 0 comments
Open

base64 Url-Safe value for k #419

gam04 opened this issue May 19, 2023 · 0 comments

Comments

@gam04
Copy link

gam04 commented May 19, 2023

Hi.

I have a question regarding the 'k' field of JWK.
According to the following specification : https://www.rfc-editor.org/rfc/rfc7518.html#section-6.4.1

Should values for the 'k' field other than Base64 URL Safe be accepted?

If I create an object using jose.JWK.asKey using the following values:

{"kty":"oct","use":"sig","alg":"HS256","k":"gCwIZwLqrzbygmkv/8+PMEnqL6TiMMfqK6v4YjLtc5I="}

The key is created even though the 'k' field contains a non-Base64 URL Safe value.

Thanks in advance

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

No branches or pull requests

1 participant