Procházet zdrojové kódy

Merge pull request #16791 from overleaf/jel-saml-audience

[web] Handle the SAML error of a SP entity ID mismatch in the response

GitOrigin-RevId: d8168d4ce77f4e810df193dae98046da07e6c0ae
Jessica Lawshe před 2 roky
rodič
revize
3748621bcd
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      services/web/app/src/Features/Errors/Errors.js

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

@@ -95,6 +95,7 @@ class SAMLAuthenticationError extends OError {
     return 'saml_auth_error'
   }
 }
+class SAMLAssertionAudienceMismatch extends SAMLAuthenticationError {}
 
 class SAMLAuthenticationRequiredError extends SAMLAuthenticationError {
   get i18nKey() {
@@ -281,6 +282,7 @@ module.exports = {
   InvalidError,
   NotInV2Error,
   OutputFileFetchFailedError,
+  SAMLAssertionAudienceMismatch,
   SAMLAuthenticationRequiredError,
   SAMLIdentityExistsError,
   SAMLAlreadyLinkedError,