From a839da3c4ec09852ee6ebe55764c331c3d5f917f Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Thu, 1 Feb 2024 10:09:54 -0600 Subject: [PATCH] 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 --- services/web/app/src/Features/Errors/Errors.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/app/src/Features/Errors/Errors.js b/services/web/app/src/Features/Errors/Errors.js index 521143ebd1..a047a8a731 100644 --- a/services/web/app/src/Features/Errors/Errors.js +++ b/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,