Use a template for the SSO success page to allow for customization. (#7279)

This commit is contained in:
Patrick Cloke 2020-04-17 13:34:55 -04:00 committed by GitHub
parent 701788a227
commit 054c231e58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 66 additions and 37 deletions

View file

@ -43,6 +43,12 @@ class SSOConfig(Config):
),
"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"
),
"sso_auth_success_template",
)
self.sso_client_whitelist = sso_config.get("client_whitelist") or []