feat(chalice): enforce SSO
This commit is contained in:
parent
661298494c
commit
2c453fdd76
1 changed files with 1 additions and 1 deletions
|
|
@ -729,7 +729,7 @@ def authenticate(email, password, for_change_password=False):
|
|||
if for_change_password:
|
||||
return True
|
||||
r = helper.dict_to_camel_case(r)
|
||||
if config("enforce_SSO", cast=bool, default=False) and not r["superAdmin"] and helper.is_saml2_available():
|
||||
if config("enforce_SSO", cast=bool, default=False) and helper.is_saml2_available():
|
||||
return {"errors": ["must sign-in with SSO, enforced by admin"]}
|
||||
|
||||
jwt_iat = change_jwt_iat(r['userId'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue