Merge #345 Handle None returned by _get_token_info

This commit is contained in:
Jan Kaluža
2017-02-21 14:27:59 +00:00

View File

@@ -105,7 +105,7 @@ def get_user(request):
log.exception(error)
raise Unauthorized(error)
if not "active" in data or not data["active"]:
if not data or not "active" in data or not data["active"]:
raise Unauthorized("OIDC token invalid or expired.")
presented_scopes = data['scope'].split(' ')