mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 00:29:57 +08:00
Merge #345 Handle None returned by _get_token_info
This commit is contained in:
@@ -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(' ')
|
||||
|
||||
Reference in New Issue
Block a user