|
|
@ -188,7 +188,7 @@ class Main(http.Controller): |
|
|
|
) |
|
|
|
except OAuthException as e: |
|
|
|
response_params['error'] = e.type |
|
|
|
response_params['error_description'] = e.message |
|
|
|
response_params['error_description'] = e |
|
|
|
return self.__redirect(redirect_uri, response_params, response_mode or 'query') |
|
|
|
|
|
|
|
if not response_mode: |
|
|
@ -281,7 +281,7 @@ class Main(http.Controller): |
|
|
|
OAuthException.UNSUPPORTED_GRANT_TYPE, |
|
|
|
) |
|
|
|
except OAuthException as e: |
|
|
|
body = json.dumps({'error': e.type, 'error_description': e.message}) |
|
|
|
body = json.dumps({'error': e.type, 'error_description': e}) |
|
|
|
return werkzeug.Response(response=body, status=400, headers=cors_headers) |
|
|
|
|
|
|
|
def __handle_grant_type_authorization_code(self, req, **query): |
|
|
|