diff --git a/internal/authenticator/authenticator.go b/internal/authenticator/authenticator.go index 10830ec..4746fde 100644 --- a/internal/authenticator/authenticator.go +++ b/internal/authenticator/authenticator.go @@ -197,7 +197,7 @@ func (a *Authenticator) AuthenticateHttpRequest(req *http.Request) (*key.Respons } if key.Revoked { - return nil, nil, internal_errors.NewAuthError("not authorized") + return nil, nil, internal_errors.NewAuthError(fmt.Sprintf("key %s not authorized", key.KeyId)) } if strings.HasPrefix(req.URL.Path, "/api/routes") {