|
|
@@ -83,6 +83,14 @@ class SAMLCommonsUnavailable extends OError {
|
|
|
|
|
|
class SAMLDomainCaptureError extends OError {}
|
|
|
|
|
|
+class SAMLDomainCaptureJoiningError extends SAMLDomainCaptureError {}
|
|
|
+
|
|
|
+class SAMLDomainCaptureEmailExistsError extends SAMLDomainCaptureJoiningError {
|
|
|
+ get i18nKey() {
|
|
|
+ return 'saml_email_on_another_account_error'
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class SAMLIdentityExistsError extends OError {
|
|
|
get i18nKey() {
|
|
|
return 'institution_account_tried_to_add_already_registered'
|
|
|
@@ -363,7 +371,9 @@ module.exports = {
|
|
|
SAMLAssertionAudienceMismatch,
|
|
|
SAMLAuthenticationRequiredError,
|
|
|
SAMLCommonsUnavailable,
|
|
|
+ SAMLDomainCaptureEmailExistsError,
|
|
|
SAMLDomainCaptureError,
|
|
|
+ SAMLDomainCaptureJoiningError,
|
|
|
SAMLIdentityExistsError,
|
|
|
SAMLAlreadyLinkedError,
|
|
|
SAMLEmailNotAffiliatedError,
|