|
@@ -183,6 +183,10 @@ def ShouldUseSSO(host: str, email: str) -> bool:
|
|
if not ssoHelper.find_cmd():
|
|
if not ssoHelper.find_cmd():
|
|
LOGGER.debug("SSO=False: no SSO command")
|
|
LOGGER.debug("SSO=False: no SSO command")
|
|
return False
|
|
return False
|
|
|
|
+ if not email:
|
|
|
|
+ LOGGER.debug(
|
|
|
|
+ "SSO=True: email is empty or missing (and SSO command available)")
|
|
|
|
+ return True
|
|
if email.endswith('@google.com'):
|
|
if email.endswith('@google.com'):
|
|
LOGGER.debug("SSO=True: email is google.com")
|
|
LOGGER.debug("SSO=True: email is google.com")
|
|
return True
|
|
return True
|