remove log msg about user issues with tokens
Since they are user issues with tokens there are not much
we can do about this in terms of debugging when going over
the AI logs.
The error is still clearly presented to the user via the API
@@ -173,7 +173,6 @@ func (a *RHSSOAuthenticator) AuthUserAuth(token string) (interface{}, error) {
// TODO: This validation is going to be removed in jwt-go v4, once jwt-go v4
// is released and we start using it, this validation-skip can be removed.
if !isValidationErrorIssuedAt(err) {
- a.log.WithError(err).Errorf("Error parsing token or token is invalid")
return nil, common.NewInfraError(http.StatusUnauthorized, errors.Errorf("Error parsing token or token is invalid"))
}
}
