|
|
@@ -218,7 +218,7 @@ public abstract class OAuth2ResourceOwnerBaseAuthenticationProvider<T extends OA
|
|
|
|
|
|
}
|
|
|
catch (Exception ex) {
|
|
|
-// LOGGER.error("problem in authenticate", ex);
|
|
|
+ LOGGER.error("problem in authenticate", ex);
|
|
|
throw oAuth2AuthenticationException((AuthenticationException) ex);
|
|
|
}
|
|
|
|
|
|
@@ -258,6 +258,7 @@ public abstract class OAuth2ResourceOwnerBaseAuthenticationProvider<T extends OA
|
|
|
return new OAuth2AuthenticationException(
|
|
|
new OAuth2Error(OAuth2ErrorCodes.INVALID_SCOPE, ErrorTypeEnum.ACCESS_DENIED.getDescription(), ""));
|
|
|
}
|
|
|
+ LOGGER.error(authenticationException.getMessage());
|
|
|
return new OAuth2AuthenticationException(OAuth2ErrorCodesExpand.UN_KNOW_LOGIN_ERROR);
|
|
|
}
|
|
|
|