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
This commit is contained in:
Jessica Lawshe
2026-02-19 11:01:05 -06:00
committed by Copybot
parent cf39e140b0
commit 00fe0473c5

View File

@@ -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,