From 00fe0473c5bb63ad7120d0882aa5f03174709c67 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Thu, 19 Feb 2026 11:01:05 -0600 Subject: [PATCH] Merge pull request #31416 from overleaf/jel-saml-session-missing [web] Throw instance of `SAMLAuthenticationError` when missing session data and show error message GitOrigin-RevId: e64ec571a127367a27eb032bd4a22c90124e8b0f --- services/web/app/src/Features/Errors/Errors.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/web/app/src/Features/Errors/Errors.js b/services/web/app/src/Features/Errors/Errors.js index 934a70a9fc..fd912cedef 100644 --- a/services/web/app/src/Features/Errors/Errors.js +++ b/services/web/app/src/Features/Errors/Errors.js @@ -221,6 +221,12 @@ class SAMLGroupMemberLimitReachedError extends OError {} class SAMLDomainCaptureManagedOptInUserMissingEmailError extends SAMLDomainCaptureError {} +class SAMLSessionProviderDataMissing extends SAMLAuthenticationError { + get i18nKey() { + return 'try_again' + } +} + class SAMLSessionDataMissing extends BackwardCompatibleError { constructor(arg) { super(arg) @@ -390,6 +396,7 @@ module.exports = { SAMLEmailNotAffiliatedError, SAMLEmailAffiliatedWithAnotherInstitutionError, SAMLSessionDataMissing, + SAMLSessionProviderDataMissing, SAMLAuthenticationError, SAMLGroupSSOLoginIdentityMismatchError, SAMLGroupSSOLoginIdentityNotFoundError,