-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: customize the login form using an environment variable #2361
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
@@ -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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Luis noticed that there is a missing comma in the line above the one he added 😅 so I'm dismissing my review
f563041
to
f87965b
Compare
f87965b
to
27a98fb
Compare
It's interesting @angela-tran , looks like commas are not required according to the terraform docs since app_settings are a key-value pair, but it's prob best to include them (it also makes the VS Code syntax highlighting look uniform). |
This PR sets the login form configuration using an environment variable.
Before merging this PR, ensure that:
dev
has a new secret in the key vault and a new environment variable that refers to this secret in the app settingstest
has a new secret in the key vault and a new environment variable that refers to this secret in the app settingsprod
has a new secret in the key vault and a new environment variable that refers to this secret in the app settings