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

don't croak on an unknown zip method while unzipping the payload #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MichaelDaum
Copy link

LinkedIn's OpenID puts an "RS256" into the "zip" property of the JWT header. Which might be wrong obviously as the rest of the payload is uncompressed. So better ignore this and return the payload as is.

LinkedIn's OpenID puts an "RS256" into the "zip" property of the JWT
header. Which might be wrong obviously as the rest of the payload is
uncompressed. So better ignore this and return the payload as is.
@karel-m
Copy link
Contributor

karel-m commented Aug 17, 2024

The standard https://datatracker.ietf.org/doc/html/rfc7516#section-4.1.3 says:

Use of this Header Parameter is OPTIONAL.
This Header Parameter MUST be understood
and processed by implementations.

To me it sounds like when the "zip" properties is present but we do not understand its content we should stop/fail/croak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants