From 778c46d921aea0a31f80b5bac6775fff83a68c88 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Fri, 8 Sep 2023 15:29:40 -0400 Subject: [PATCH] Add another workaround for keycloak. No-Issue Signed-off-by: James Tanner --- galaxy_ng/app/api/ui/views/auth.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/galaxy_ng/app/api/ui/views/auth.py b/galaxy_ng/app/api/ui/views/auth.py index 7d9fd3eb07..457cb37f1e 100644 --- a/galaxy_ng/app/api/ui/views/auth.py +++ b/galaxy_ng/app/api/ui/views/auth.py @@ -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']