You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to validate Cloudflare Zero Trust JWT, but I'm getting the error "jwt: unexpected token algorithm". Looking at the code, I think the problem is related to this line the compares the header, since the JWT from CF doesn't have the "typ" field.
The text was updated successfully, but these errors were encountered:
petersondmg
changed the title
Unexpected token algorithm when validating CloudFlare's JWT
"Unexpected token algorithm" error when validating CloudFlare's JWT
Oct 10, 2022
Hello,
I'm trying to validate Cloudflare Zero Trust JWT, but I'm getting the error "jwt: unexpected token algorithm". Looking at the code, I think the problem is related to this line the compares the header, since the JWT from CF doesn't have the "typ" field.
The line:
jwt/token.go
Line 169 in d03e03a
Cloudflare doc: https://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/validating-json/
Thank you.
The text was updated successfully, but these errors were encountered: