Merge pull request #30697 from overleaf/jel-fix-new-managed-user-via-account-linking

[web] Throw error if new user via domain capture not opted to be managed

GitOrigin-RevId: 1e18447ea337854d39f8e89df52ef20f8f1d382f
This commit is contained in:
Jessica Lawshe
2026-01-15 10:46:30 -06:00
committed by Copybot
parent ca1a78163b
commit 3f19aaa58e

View File

@@ -204,6 +204,11 @@ class SAMLRequestDeniedError extends SAMLAuthenticationError {
}
}
class SAMLDomainCaptureManagedUserOptInRequiredError extends OError {
// use OError instead of SAMLDomainCaptureError since SAMLMiddleware will check for
// SAMLDomainCaptureError and update SAML audit log but these errors do not need to be logged
}
class SAMLDomainCaptureManagedUserMissingEmailError extends OError {}
class SAMLGroupMemberLimitReachedError extends OError {}
@@ -398,6 +403,7 @@ module.exports = {
SAMLDomainCaptureRegisterError,
SAMLDomainCaptureManagedUserMissingEmailError,
SAMLGroupMemberLimitReachedError,
SAMLDomainCaptureManagedUserOptInRequiredError,
SAMLDomainCaptureManagedOptInUserMissingEmailError,
SLInV2Error,
ThirdPartyIdentityExistsError,