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

header.typ is not required #1192

Closed
wants to merge 1 commit into from
Closed

Conversation

sean-sageify
Copy link
Contributor

Per issue: #1191
Per RFC 7519: https://tools.ietf.org/html/rfc7519#section-5
Use of this Header Parameter is OPTIONAL.

Therefore, header.typ should only be validated if provided. In addition, the spec does not require the parameter to be all upper case "JWT", but that change was not made.

@thibaultcha
Copy link
Member

Hi,

Thanks for your contribution. Would you mind including a test to assert this behavior in jwt_parser_spec?

@thibaultcha
Copy link
Member

but that change was not made.

Maybe we should make it too? better to be compliant with the spec.

@subnetmarco
Copy link
Member

@sean-sageify happy to merge this once we have taken care of the previous two notes.

@subnetmarco
Copy link
Member

Also, this should be opened against next.

@subnetmarco
Copy link
Member

Manually merged into next with cab241f and more tests added with 90ceff2

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 this pull request may close these issues.

3 participants