Browse Source

[FIX] AttributeError: 'OAuthException' object has no attribute 'message' -> galicea openid

pull/3/head
Nicolas JEUDY 4 years ago
parent
commit
ed597fa00a
  1. 4
      galicea_openid_connect/controllers/main.py

4
galicea_openid_connect/controllers/main.py

@ -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):

Loading…
Cancel
Save