mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
Fix PreCommit
This commit is contained in:
@@ -106,11 +106,13 @@ class SpringBasedIdentityServiceFacade implements IdentityServiceFacade
|
|||||||
{
|
{
|
||||||
response = client.getTokenResponse(request);
|
response = client.getTokenResponse(request);
|
||||||
}
|
}
|
||||||
catch (OAuth2AuthorizationException e) {
|
catch (OAuth2AuthorizationException e)
|
||||||
|
{
|
||||||
LOGGER.debug("Failed to authorize against Authorization Server. Reason: " + e.getError() + ".");
|
LOGGER.debug("Failed to authorize against Authorization Server. Reason: " + e.getError() + ".");
|
||||||
throw new AuthorizationException("Failed to obtain access token. " + e.getError(), e);
|
throw new AuthorizationException("Failed to obtain access token. " + e.getError(), e);
|
||||||
}
|
}
|
||||||
catch (RuntimeException e) {
|
catch (RuntimeException e)
|
||||||
|
{
|
||||||
LOGGER.warn("Failed to authorize against Authorization Server. Reason: " + e.getMessage());
|
LOGGER.warn("Failed to authorize against Authorization Server. Reason: " + e.getMessage());
|
||||||
throw new AuthorizationException("Failed to obtain access token.", e);
|
throw new AuthorizationException("Failed to obtain access token.", e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user