Skip to content

Commit

Permalink
Add another workaround for keycloak.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner committed Sep 8, 2023
1 parent 5f45a72 commit 778c46d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion galaxy_ng/app/api/ui/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ def _oidc_logout(self, request):
log.warning(msg)
return

extra_data = json.loads(social.extra_data)
# FIXME - workaround for custom json type from dynaconf
if isinstance(social.extra_data, dict):
extra_data = social.extra_data
else:
extra_data = json.loads(social.extra_data)

access_token = extra_data['access_token']
refresh_token = extra_data['refresh_token']
Expand Down

0 comments on commit 778c46d

Please sign in to comment.