From 5d514ddaf2e22f13389ac4375a94344d8bad299d Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 2 Apr 2025 16:35:19 +0200 Subject: [PATCH] feat(chalice): added for_spot=True for authenticate_sso (#3259) --- ee/api/chalicelib/core/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/api/chalicelib/core/users.py b/ee/api/chalicelib/core/users.py index 80ebd9271..d36f91227 100644 --- a/ee/api/chalicelib/core/users.py +++ b/ee/api/chalicelib/core/users.py @@ -927,12 +927,12 @@ def authenticate_sso(email: str, internal_id: str): aud=AUDIENCE, jwt_jti=j_r.jwt_refresh_jti), "refreshTokenMaxAge": config("JWT_REFRESH_EXPIRATION", cast=int), "spotJwt": authorizers.generate_jwt(user_id=r['userId'], tenant_id=r['tenantId'], - iat=j_r.spot_jwt_iat, aud=spot.AUDIENCE), + iat=j_r.spot_jwt_iat, aud=spot.AUDIENCE, for_spot=True), "spotRefreshToken": authorizers.generate_jwt_refresh(user_id=r['userId'], tenant_id=r['tenantId'], iat=j_r.spot_jwt_refresh_iat, aud=spot.AUDIENCE, - jwt_jti=j_r.spot_jwt_refresh_jti), + jwt_jti=j_r.spot_jwt_refresh_jti, for_spot=True), "spotRefreshTokenMaxAge": config("JWT_SPOT_REFRESH_EXPIRATION", cast=int) } return response