Skip to content

Commit

Permalink
fix: _validate_web_sso_token error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouhaoJiang committed Aug 14, 2024
1 parent 54f3a82 commit ef1d829
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/controllers/web/wraps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ef1d829

Please sign in to comment.