Skip to content

Commit 7015ae6

Browse files
authored
Merge pull request #63 from senselessDog/main
2 parents 6035f13 + b87441b commit 7015ae6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

oauth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func VerifyOAuth(
8585
}
8686

8787
if !verifyScope(token.Claims.(*models.NrfAccessTokenAccessTokenClaims).Scope, serviceName) {
88-
return errors.Wrapf(err, "verify OAuth scope")
88+
return errors.New("OAuth scope verification failed: insufficient permissions")
8989
}
9090
return nil
9191
}

0 commit comments

Comments
 (0)