From abb71c51f72314ec89eb7888cfb2f8bb110d7c9f Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Fri, 10 Nov 2023 23:05:00 +0100 Subject: [PATCH] Api v1.15.0 (#1651) * fix(chalice): fixed SSO support of refresh-token --- ee/api/chalicelib/core/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/api/chalicelib/core/users.py b/ee/api/chalicelib/core/users.py index 9f7f57b35..06dfb485f 100644 --- a/ee/api/chalicelib/core/users.py +++ b/ee/api/chalicelib/core/users.py @@ -854,7 +854,7 @@ def authenticate_sso(email, internal_id, exp=None): if r["serviceAccount"]: raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="service account is not authorized to login") - jwt_iat, jwt_r_jti, jwt_r_iat = refresh_jwt_iat_jti(user_id=r['userId']) + jwt_iat, jwt_r_jti, jwt_r_iat = change_jwt_iat_jti(user_id=r['userId']) return { "jwt": authorizers.generate_jwt(user_id=r['userId'], tenant_id=r['tenantId'], iat=jwt_iat, aud=f"front:{helper.get_stage_name()}"),