Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7
-
Novice
Description
Current AccessTokenService implementation catches all OAuthServiceExceptions and returns a generic error response discarding all the exception details:
ServerAccessToken serverToken = null;
try
catch (OAuthServiceException ex)
{ // the error response is to be returned next }if (serverToken == null)
{ return createErrorResponse(params, OAuthConstants.INVALID_GRANT); }I think it would be more useful to create the OAuthError object to return using the exception's message, in order to receive the error code/details at the client layer