diff --git a/services/web/app/src/Features/Errors/Errors.js b/services/web/app/src/Features/Errors/Errors.js index 7407be8383..5a3ef61b04 100644 --- a/services/web/app/src/Features/Errors/Errors.js +++ b/services/web/app/src/Features/Errors/Errors.js @@ -188,6 +188,12 @@ class SAMLEmailNotRecognizedError extends SAMLAuthenticationError { class SAMLDomainCaptureRegisterError extends SAMLAuthenticationError {} +class SAMLRequestDeniedError extends SAMLAuthenticationError { + get i18nKey() { + return 'saml_request_denied_error' + } +} + class SAMLSessionDataMissing extends BackwardCompatibleError { constructor(arg) { super(arg) @@ -369,6 +375,7 @@ module.exports = { SAMLLoginFailureError, SAMLEmailNotRecognizedError, SAMLResponseAlreadyProcessedError, + SAMLRequestDeniedError, SAMLDomainCaptureRegisterError, SLInV2Error, ThirdPartyIdentityExistsError, diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 976d929ff7..bab4a968da 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -1522,6 +1522,7 @@ "saml_login_identity_not_found_error": "", "saml_metadata": "", "saml_missing_signature_error": "", + "saml_request_denied_error": "", "saml_response": "", "save": "", "save_20_percent": "", diff --git a/services/web/locales/en.json b/services/web/locales/en.json index e79c4e2cd2..35f77ec753 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -1977,6 +1977,7 @@ "saml_metadata": "Overleaf SAML Metadata", "saml_missing_signature_error": "Sorry, the information received from your identity provider is not signed (both response and assertion signatures are required). Please contact your administrator for more information.", "saml_missing_user_attribute": "There was a problem with your Single Sign-on authentication. Your organization did not provide the required information to complete authentication. Please contact your administrator for more information.", + "saml_request_denied_error": "Sorry, your identity provider denied the request to authenticate you. Please contact your administrator for more information.", "saml_response": "SAML Response", "save": "Save", "save_20_percent": "save 20%",