dgrijalva / jwt-go

ARCHIVE - Golang implementation of JSON Web Tokens (JWT). This project is now maintained at:
https://github.com/golang-jwt/jwt
MIT License
10.78k stars 997 forks source link

SkipClaimsValidation: Value not being set #444

Closed MJoeWatson closed 3 years ago

MJoeWatson commented 3 years ago

I was trying to set SkipClaimsValidation to true, but this seems to be ignored when I when I change the value

p := &jwt.Parser{ SkipClaimsValidation: true, }

token, err := p.ParseWithClaims(tokenString, &CustomClaims{}, func (token *jwt.Token) (interface{}, error) { cert, err := getPemCert(token)

I'm not experienced with Go, so It's unclear to me why this isn't working. Any help would be appreciated. Thanks