From ef1d82977d1502dd4227c3508673a6f8f965da9f Mon Sep 17 00:00:00 2001 From: Joe <1264204425@qq.com> Date: Wed, 14 Aug 2024 16:23:32 +0800 Subject: [PATCH] fix: _validate_web_sso_token error --- api/controllers/web/wraps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/controllers/web/wraps.py b/api/controllers/web/wraps.py index 490085727774e9..ae363672c64583 100644 --- a/api/controllers/web/wraps.py +++ b/api/controllers/web/wraps.py @@ -68,6 +68,8 @@ def decode_jwt_token(): def _validate_web_sso_token(decoded, system_features, app_code): + app_web_sso_enabled = False + # Check if SSO is enforced for web, and if the token source is not SSO, raise an error and redirect to SSO login if system_features.sso_enforced_for_web: app_web_sso_enabled = EnterpriseService.get_app_web_sso_enabled(app_code).get('enabled', False)