Просмотр исходного кода

Merge pull request #29059 from overleaf/ii-domain-capture-saml-provider-error

[web] Saml request denied error

GitOrigin-RevId: 73cca9cbc5421bed141fbf0b4978d71930758824
ilkin-overleaf 8 месяцев назад
Родитель
Сommit
478df81f87

+ 7 - 0
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,

+ 1 - 0
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": "",

+ 1 - 0
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%",