Просмотр исходного кода

Merge pull request #2678 from overleaf/jel-unreliable-sso-email

Use SSO email attribute flag from API instead of settings file

GitOrigin-RevId: 088b4247a0cbd56ff2184ac6d280e427cea3972e
nate stemen 6 лет назад
Родитель
Сommit
bffb9f3bce
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      services/web/app/src/Features/Errors/Errors.js

+ 2 - 2
services/web/app/src/Features/Errors/Errors.js

@@ -74,7 +74,6 @@ class SAMLSessionDataMissing extends BackwardCompatibleError {
         ? arg.samlSession
         : {}
     this.tryAgain = true
-    const institutionsWithoutEmail = settings.samlInstitutionsWithoutEmail || []
     const {
       universityId,
       universityName,
@@ -91,7 +90,8 @@ class SAMLSessionDataMissing extends BackwardCompatibleError {
       this.message = 'Missing session data.'
     } else if (
       !institutionEmail &&
-      institutionsWithoutEmail.includes(samlSession.universityId)
+      samlSession &&
+      samlSession.userEmailAttributeUnreliable
     ) {
       this.tryAgain = false
       this.message = `Your account settings at your institution prevent us from accessing your email. You will need to make your email public at your institution in order to link with ${