We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6035f13 + b87441b commit 7015ae6Copy full SHA for 7015ae6
1 file changed
oauth/oauth.go
@@ -85,7 +85,7 @@ func VerifyOAuth(
85
}
86
87
if !verifyScope(token.Claims.(*models.NrfAccessTokenAccessTokenClaims).Scope, serviceName) {
88
- return errors.Wrapf(err, "verify OAuth scope")
+ return errors.New("OAuth scope verification failed: insufficient permissions")
89
90
return nil
91
0 commit comments