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

Verifying JWK with one out of multiple keys, where one of the keys is a HS256 key #564

Open
0xmerp opened this issue May 6, 2024 · 0 comments

Comments

@0xmerp
Copy link

0xmerp commented May 6, 2024

Hi,

Basically I have a use case where I would like to verify JWKs where the signature might be either one of a collection of ES256 keys (ECDSA), or a HS256 (Sha256-HMAC) key.

I was looking at this: https://github.com/firebase/php-jwt?tab=readme-ov-file#example-with-multiple-keys

This lets me load my JWK key set with all of my ES256 keys, but won't handle the case where the JWK might be signed with a HS256 key.

Here is an example of the use case: https://developers.line.biz/en/docs/line-login/verify-id-token/#signature

I was just wondering if php-jwt supports this use case, or if I could propose it as a feature.

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