Skip to content

Commit

Permalink
feat: set the login form configuration using an environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 committed Sep 12, 2024
1 parent 99500c8 commit f87965b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benefits/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def RUNTIME_ENVIRONMENT():
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/userinfo.profile",
]
SSO_SHOW_FORM_ON_ADMIN_PAGE = False
SSO_SHOW_FORM_ON_ADMIN_PAGE = os.environ.get("SSO_SHOW_FORM_ON_ADMIN_PAGE", "False").lower() == "true"
STAFF_GROUP_NAME = "Cal-ITP"

MIDDLEWARE = [
Expand Down
3 changes: 2 additions & 1 deletion terraform/app_service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ resource "azurerm_linux_web_app" "main" {
"GOOGLE_SSO_CLIENT_SECRET" = "${local.secret_prefix}google-sso-client-secret)",
"GOOGLE_SSO_ALLOWABLE_DOMAINS" = "${local.secret_prefix}google-sso-allowable-domains)",
"GOOGLE_SSO_STAFF_LIST" = "${local.secret_prefix}google-sso-staff-list)",
"GOOGLE_SSO_SUPERUSER_LIST" = "${local.secret_prefix}google-sso-superuser-list)"
"GOOGLE_SSO_SUPERUSER_LIST" = "${local.secret_prefix}google-sso-superuser-list)",
"SSO_SHOW_FORM_ON_ADMIN_PAGE" = "${local.secret_prefix}sso-show-form-on-admin-page)"

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

0 comments on commit f87965b

Please sign in to comment.