From 328fdf88f06137fbc4cc020a12babf9b078de650 Mon Sep 17 00:00:00 2001 From: jasquat Date: Mon, 6 Mar 2023 14:28:55 -0500 Subject: [PATCH] pyl --- .../keycloak/realm_exports/spiffworkflow-realm.json | 2 +- .../src/spiffworkflow_backend/routes/user.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spiffworkflow-backend/keycloak/realm_exports/spiffworkflow-realm.json b/spiffworkflow-backend/keycloak/realm_exports/spiffworkflow-realm.json index a017d710..008755eb 100644 --- a/spiffworkflow-backend/keycloak/realm_exports/spiffworkflow-realm.json +++ b/spiffworkflow-backend/keycloak/realm_exports/spiffworkflow-realm.json @@ -4728,4 +4728,4 @@ "clientPolicies" : { "policies" : [ ] } -} \ No newline at end of file +} diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/user.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/user.py index b36ef225..dfe846bc 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/user.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/user.py @@ -101,7 +101,11 @@ def verify_token( refresh_token ) ) - if auth_token and "error" not in auth_token and "id_token" in auth_token: + if ( + auth_token + and "error" not in auth_token + and "id_token" in auth_token + ): tld = current_app.config["THREAD_LOCAL_DATA"] tld.new_access_token = auth_token["id_token"] tld.new_id_token = auth_token["id_token"]