diff options
author | Quentin Gliech <quentingliech@gmail.com> | 2020-05-08 14:30:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 08:30:40 -0400 |
commit | 616af44137c78d481024da83bb51ed0d50a49522 (patch) | |
tree | 0dff524691b7619ccb157755c4d138f33ec82ef9 /synapse/config/sso.py | |
parent | Add room details admin endpoint (#7317) (diff) | |
download | synapse-616af44137c78d481024da83bb51ed0d50a49522.tar.xz |
Implement OpenID Connect-based login (#7256)
Diffstat (limited to 'synapse/config/sso.py')
-rw-r--r-- | synapse/config/sso.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/synapse/config/sso.py b/synapse/config/sso.py index cac6bc0139..aff642f015 100644 --- a/synapse/config/sso.py +++ b/synapse/config/sso.py @@ -36,17 +36,13 @@ class SSOConfig(Config): if not template_dir: template_dir = pkg_resources.resource_filename("synapse", "res/templates",) - self.sso_redirect_confirm_template_dir = template_dir + self.sso_template_dir = template_dir self.sso_account_deactivated_template = self.read_file( - os.path.join( - self.sso_redirect_confirm_template_dir, "sso_account_deactivated.html" - ), + os.path.join(self.sso_template_dir, "sso_account_deactivated.html"), "sso_account_deactivated_template", ) self.sso_auth_success_template = self.read_file( - os.path.join( - self.sso_redirect_confirm_template_dir, "sso_auth_success.html" - ), + os.path.join(self.sso_template_dir, "sso_auth_success.html"), "sso_auth_success_template", ) @@ -137,6 +133,13 @@ class SSOConfig(Config): # # This template has no additional variables. # + # * HTML page to display to users if something goes wrong during the + # OpenID Connect authentication process: 'sso_error.html'. + # + # When rendering, this template is given two variables: + # * error: the technical name of the error + # * error_description: a human-readable message for the error + # # You can see the default templates at: # https://github.com/matrix-org/synapse/tree/master/synapse/res/templates # |