mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
Merge pull request #22803 from overleaf/jel-sso-error-handling
[web] Better error when for missing user SAML callback data GitOrigin-RevId: 0f781bc46a8684e183d4a860df00c29d6dc9193e
This commit is contained in:
@@ -138,6 +138,24 @@ class SAMLMissingSignatureError extends SAMLAuthenticationError {
|
||||
}
|
||||
}
|
||||
|
||||
class SAMLInvalidUserIdentifierError extends SAMLAuthenticationError {
|
||||
get i18nKey() {
|
||||
return 'saml_authentication_required_error'
|
||||
}
|
||||
}
|
||||
|
||||
class SAMLInvalidUserAttributeError extends SAMLAuthenticationError {
|
||||
get i18nKey() {
|
||||
return 'saml_authentication_required_error'
|
||||
}
|
||||
}
|
||||
|
||||
class SAMLMissingUserIdentifierError extends SAMLAuthenticationError {
|
||||
get i18nKey() {
|
||||
return 'saml_missing_user_attribute'
|
||||
}
|
||||
}
|
||||
|
||||
class SAMLInvalidResponseError extends SAMLAuthenticationError {}
|
||||
|
||||
class SAMLResponseAlreadyProcessedError extends SAMLInvalidResponseError {
|
||||
@@ -305,7 +323,10 @@ module.exports = {
|
||||
SAMLGroupSSOLoginIdentityMismatchError,
|
||||
SAMLGroupSSOLoginIdentityNotFoundError,
|
||||
SAMLGroupSSODisabledError,
|
||||
SAMLInvalidUserAttributeError,
|
||||
SAMLInvalidUserIdentifierError,
|
||||
SAMLInvalidSignatureError,
|
||||
SAMLMissingUserIdentifierError,
|
||||
SAMLMissingSignatureError,
|
||||
SAMLInvalidResponseError,
|
||||
SAMLLoginFailureError,
|
||||
|
||||
@@ -1821,6 +1821,7 @@
|
||||
"saml_login_identity_not_found_error": "Sorry, we were not able to find an Overleaf account set up for single sign-on with this identity provider.",
|
||||
"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_response": "SAML Response",
|
||||
"save": "Save",
|
||||
"save_20_percent": "save 20%",
|
||||
|
||||
Reference in New Issue
Block a user