diff --git a/templates/zerver/authentication_backends/apple-error.html b/templates/zerver/authentication_backends/apple-error.html deleted file mode 100644 index 3413772eb3..0000000000 --- a/templates/zerver/authentication_backends/apple-error.html +++ /dev/null @@ -1,28 +0,0 @@ -
- You are attempting to use the Apple auth backend, but it is - not properly configured. To configure, please check the following: -
-{{ root_domain_url }}/complete/apple/
as the callback URL
- for your Services ID in Apple’s developer console. You can enable “Sign
- in with Apple” for an app at
- Certificates,
- Identifiers & Profiles.
- SOCIAL_AUTH_APPLE_SERVICES_ID
,
- SOCIAL_AUTH_APPLE_APP_ID
,
- SOCIAL_AUTH_APPLE_TEAM
, and
- SOCIAL_AUTH_APPLE_KEY
in
- {{ settings_path }}
- and stored the private key provided by Apple at
- /etc/zulip/apple-auth-key.p8
on the Zulip server, with
- proper permissions set.
-
- You attempted to use the DevAuthBackend
authentication method,
- which is used for logging in without a password in the Zulip development
- environment.
-
This backend is not available for this realm, either because:
-DevAuthBackend
is disabled in
- AUTHENTICATION_BACKENDS
in
- {{ settings_path }}
.
- - You are attempting to use the GitHub auth backend, but it - is not properly configured. To configure, please check the following: -
-{{ root_domain_url }}/complete/github/
as the callback URL
- in the OAuth application in GitHub. You can create OAuth apps from
- GitHub’s developer
- site.
- {{ client_id_key_name }}
in
- {{ settings_path }}
and
- social_auth_github_secret
in
- {{ secrets_path }}
with the values from your OAuth
- application.
- - You are attempting to use the GitLab auth backend, but it - is not properly configured. To configure, please check the following: -
-{{ root_domain_url }}/complete/gitlab/
as the callback URL
- in the OAuth application in GitLab. You can register OAuth apps at
- GitLab
- applications.
- {{ client_id_key_name }}
in
- {{ settings_path }}
and
- social_auth_gitlab_secret
in
- {{ secrets_path }}
with the values from your OAuth
- application.
- - You are attempting to use the Google auth backend, but it - is not properly configured. To configure, please check the following: -
-{{ root_domain_url }}/complete/google/
.
- {{ client_id_key_name }}
in
- {{ settings_path }}
and
- social_auth_google_secret
in
- {{ secrets_path }}
.
- - It appears there are problems with the - email configuration. -
- {% if not development_environment %} -
- See /var/log/zulip/errors.log
for more
- details on the error.
-
- You may also want to test your email configuration, - as described in the - Production installation docs. -
- {% else %} -- Please have a look at our - setup guide - for forwarding emails sent in development - environment to an email account. -
- {% endif %} - {% endif %} - - {% if error_name == "dev_not_supported" %} - {% include "zerver/authentication_backends/dev-not-supported-error.html" %} - {% endif %} - - {% if has_error_template %} - {% if development_environment %} - {% with %} - {% set settings_path = secrets_path %} - {% set client_id_key_name = "social_auth_" + error_name + "_key" %} - {% include "zerver/authentication_backends/" + error_name + "-error.html" %} - {% endwith %} -- For more information, have a look at - the authentication - setup guide for the development environment. -
- {% else %} - {% with %} - {% set client_id_key_name = "SOCIAL_AUTH_" + error_name.upper() + "_KEY" %} - {% include "zerver/authentication_backends/" + error_name + "-error.html" %} - {% endwith %} -
- For more information, have a look at
- our authentication
- setup guide and the comments in {{ settings_comments_path }}
.
-
- SAML authentication is either not enabled or misconfigured. Have a look at - our setup guide. -
- {% if development_environment %} -- See also the - SAML guide - for the development environment. -
- {% endif %} - {% endif %} - - {% if error_name == "remote_user_backend_disabled" %} -- Authentication via the REMOTE_USER header is - disabled in `/etc/zulip/settings.py`. -
- {% endif %} - {% if error_name == "remote_user_header_missing" %} -- The REMOTE_USER header is not set. -
- {% endif %} - {% if error_name == "oidc" %} - {# TODO: Improve the config error page for OIDC #} -- The OpenID Connect backend is not configured correctly. -
- {% endif %} - -After making your changes, remember to restart - the Zulip server.
-Refresh to try again or click here to go back to the login page.
-+ You are attempting to use the Apple auth backend, but it is + not properly configured. To configure, please check the following: +
+{{ root_domain_url }}/complete/apple/
as the callback URL
+ for your Services ID in Apple’s developer console. You can enable “Sign
+ in with Apple” for an app at
+ Certificates,
+ Identifiers & Profiles.
+ SOCIAL_AUTH_APPLE_SERVICES_ID
,
+ SOCIAL_AUTH_APPLE_APP_ID
,
+ SOCIAL_AUTH_APPLE_TEAM
, and
+ SOCIAL_AUTH_APPLE_KEY
in
+ {{ auth_settings_path }}
+ and stored the private key provided by Apple at
+ /etc/zulip/apple-auth-key.p8
on the Zulip server, with
+ proper permissions set.
+ After making your changes, remember to restart + the Zulip server.
+Refresh to try again or click here to go back to the login page.
+
+ You attempted to use the DevAuthBackend
authentication method,
+ which is used for logging in without a password in the Zulip development
+ environment.
+
This backend is not available for this realm, either because:
+DevAuthBackend
is disabled in
+ AUTHENTICATION_BACKENDS
in
+ {{ auth_settings_path }}
.
+ + You are attempting to use the GitHub auth backend, but it + is not properly configured. To configure, please check the following: +
+{{ root_domain_url }}/complete/github/
as the callback URL
+ in the OAuth application in GitHub. You can create OAuth apps from
+ GitHub’s developer
+ site.
+ {{ client_id_key_name }}
in
+ {{ auth_settings_path }}
and
+ social_auth_github_secret
in
+ {{ secrets_path }}
with the values from your OAuth
+ application.
+ + You are attempting to use the GitLab auth backend, but it + is not properly configured. To configure, please check the following: +
+{{ root_domain_url }}/complete/gitlab/
as the callback URL
+ in the OAuth application in GitLab. You can register OAuth apps at
+ GitLab
+ applications.
+ {{ client_id_key_name }}
in
+ {{ auth_settings_path }}
and
+ social_auth_gitlab_secret
in
+ {{ secrets_path }}
with the values from your OAuth
+ application.
+ + You are attempting to use the Google auth backend, but it + is not properly configured. To configure, please check the following: +
+{{ root_domain_url }}/complete/google/
.
+ {{ client_id_key_name }}
in
+ {{ auth_settings_path }}
and
+ social_auth_google_secret
in
+ {{ secrets_path }}
.
+ + The OpenID Connect backend is not configured correctly. +
+{% endblock %} diff --git a/templates/zerver/config_error/remote_user_backend_disabled.html b/templates/zerver/config_error/remote_user_backend_disabled.html new file mode 100644 index 0000000000..7cd85a9642 --- /dev/null +++ b/templates/zerver/config_error/remote_user_backend_disabled.html @@ -0,0 +1,8 @@ +{% extends "zerver/config_error/container.html" %} + +{% block error_content %} ++ Authentication via the REMOTE_USER header is + disabled in `/etc/zulip/settings.py`. +
+{% endblock %} diff --git a/templates/zerver/config_error/remote_user_header_missing.html b/templates/zerver/config_error/remote_user_header_missing.html new file mode 100644 index 0000000000..eaa711d1cc --- /dev/null +++ b/templates/zerver/config_error/remote_user_header_missing.html @@ -0,0 +1,7 @@ +{% extends "zerver/config_error/container.html" %} + +{% block error_content %} ++ The REMOTE_USER header is not set. +
+{% endblock %} diff --git a/templates/zerver/config_error/saml.html b/templates/zerver/config_error/saml.html new file mode 100644 index 0000000000..991140f0d5 --- /dev/null +++ b/templates/zerver/config_error/saml.html @@ -0,0 +1,15 @@ +{% extends "zerver/config_error/container.html" %} + +{% block error_content %} ++ SAML authentication is either not enabled or misconfigured. Have a look at + our setup guide. +
+ {% if development_environment %} ++ See also the + SAML guide + for the development environment. +
+ {% endif %} +{% endblock %} diff --git a/templates/zerver/config_error/smtp.html b/templates/zerver/config_error/smtp.html new file mode 100644 index 0000000000..c7c11eb646 --- /dev/null +++ b/templates/zerver/config_error/smtp.html @@ -0,0 +1,26 @@ +{% extends "zerver/config_error/container.html" %} + +{% block error_content %} ++ It appears there are problems with the + email configuration. +
+ {% if not development_environment %} +
+ See /var/log/zulip/errors.log
for more
+ details on the error.
+
+ You may also want to test your email configuration, + as described in the + Production installation docs. +
+ {% else %} ++ Please have a look at our + setup guide + for forwarding emails sent in development + environment to an email account. +
+ {% endif %} +{% endblock %} diff --git a/templates/zerver/config_error/social-container.html b/templates/zerver/config_error/social-container.html new file mode 100644 index 0000000000..13d84280b9 --- /dev/null +++ b/templates/zerver/config_error/social-container.html @@ -0,0 +1,17 @@ +{% extends "zerver/config_error/container.html" %} + +{% block error_content %} + {% if development %} ++ For more information, have a look at the + authentication setup guide + for the development environment. +
+ {% else %} +
+ For more information, have a look at our
+ authentication setup guide
+ and the comments in {{ settings_comments_path }}
.
+