We can now set our own user_id in instance.config so that user dhf8r isn't always logged in.

This commit is contained in:
mike cullerton 2022-01-21 14:42:36 -05:00
parent e67a1554ea
commit 65345a8e91
2 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ CORS_ALLOW_ORIGINS = re.split(r',\s*', environ.get('CORS_ALLOW_ORIGINS', default
TESTING = environ.get('TESTING', default="false") == "true"
PRODUCTION = (environ.get('PRODUCTION', default="false") == "true")
TEST_UID = environ.get('TEST_UID', default="dhf8r")
DEFAULT_UID = environ.get('DEFAULT_UID', default="dhf8r")
ADMIN_UIDS = re.split(r',\s*', environ.get('ADMIN_UIDS', default="dhf8r,ajl2j,cah3us,cl3wf"))
# Sentry flag

View File

@ -171,6 +171,8 @@ def login(
# If we're in production, override any uid with the uid from the SSO request headers
if _is_production():
uid = _get_request_uid(request)
else:
uid = app.config['DEFAULT_UID']
if uid:
app.logger.info("SSO_LOGIN: Full URL: " + request.url)