Skip to content

Commit e29074e

Browse files
authored
Feat: customize the login form using an environment variable (#2361)
2 parents 72349c3 + 27a98fb commit e29074e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

benefits/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def RUNTIME_ENVIRONMENT():
7272
"https://www.googleapis.com/auth/userinfo.email",
7373
"https://www.googleapis.com/auth/userinfo.profile",
7474
]
75-
SSO_SHOW_FORM_ON_ADMIN_PAGE = False
75+
SSO_SHOW_FORM_ON_ADMIN_PAGE = os.environ.get("SSO_SHOW_FORM_ON_ADMIN_PAGE", "False").lower() == "true"
7676
STAFF_GROUP_NAME = "Cal-ITP"
7777

7878
MIDDLEWARE = [

terraform/app_service.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ resource "azurerm_linux_web_app" "main" {
7777
"GOOGLE_SSO_CLIENT_SECRET" = "${local.secret_prefix}google-sso-client-secret)",
7878
"GOOGLE_SSO_ALLOWABLE_DOMAINS" = "${local.secret_prefix}google-sso-allowable-domains)",
7979
"GOOGLE_SSO_STAFF_LIST" = "${local.secret_prefix}google-sso-staff-list)",
80-
"GOOGLE_SSO_SUPERUSER_LIST" = "${local.secret_prefix}google-sso-superuser-list)"
80+
"GOOGLE_SSO_SUPERUSER_LIST" = "${local.secret_prefix}google-sso-superuser-list)",
81+
"SSO_SHOW_FORM_ON_ADMIN_PAGE" = "${local.secret_prefix}sso-show-form-on-admin-page)"
8182

8283
# Sentry
8384
"SENTRY_DSN" = "${local.secret_prefix}sentry-dsn)",

0 commit comments

Comments
 (0)