Golang: Unauthorized (square/go-jose: error in cryptographic primitive)

using:
gopkg.in/square/go-jose.v2

secretProvider := auth0.NewKeyProvider(secret)
configuration := auth0.NewConfiguration(secretProvider, audience, auth0issuer, jose.RS256)
validator := auth0.NewValidator(configuration, nil)
_, err := validator.ValidateRequest(c.Request)

result: Unauthorized (square/go-jose: error in cryptographic primitive)

Hey there @mgepby

Can you share here the link to the repo that you used? Thank you!


gopkg.in/square/go-jose.v2

1 Like

Thank you! In order to handle that most effectively I would raise a GitHub issue in the repo providing as much context as possible about your struggle and tagging Yannick Heinrich as he’s the main developer for the repo and he created it. Make sure to share the link to the issue with us here so we can also ping him. Thanks!