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 fail if typ is not present in the token. #38

Closed
mhseiden opened this issue Jul 25, 2017 · 4 comments
Closed

Don't fail if typ is not present in the token. #38

mhseiden opened this issue Jul 25, 2017 · 4 comments

Comments

@mhseiden
Copy link

Although the standard requires it, not all jwt providers are standards compliant. It would be nice if this lib was more tolerant of the missing field.

@Keats
Copy link
Owner

Keats commented Jul 28, 2017

Hmm I don't think I would want that in the library. Is there a known provider that gives invalid JWT?

@bhendo
Copy link

bhendo commented Aug 20, 2017

@Keats Google does not seem to provide typ in their JWTs

edit: according to RFC7515 and RFC7519 this header parameter is optional

@Keats
Copy link
Owner

Keats commented Aug 21, 2017

Hum I see, I guess it should be an Option then for the next major version

@Keats
Copy link
Owner

Keats commented Sep 8, 2017

Fixed in 3.0

@Keats Keats closed this as completed Sep 8, 2017
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

3 participants