mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 21:28:32 +00:00
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:
parent
e67a1554ea
commit
65345a8e91
@ -25,6 +25,7 @@ CORS_ALLOW_ORIGINS = re.split(r',\s*', environ.get('CORS_ALLOW_ORIGINS', default
|
|||||||
TESTING = environ.get('TESTING', default="false") == "true"
|
TESTING = environ.get('TESTING', default="false") == "true"
|
||||||
PRODUCTION = (environ.get('PRODUCTION', default="false") == "true")
|
PRODUCTION = (environ.get('PRODUCTION', default="false") == "true")
|
||||||
TEST_UID = environ.get('TEST_UID', default="dhf8r")
|
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"))
|
ADMIN_UIDS = re.split(r',\s*', environ.get('ADMIN_UIDS', default="dhf8r,ajl2j,cah3us,cl3wf"))
|
||||||
|
|
||||||
# Sentry flag
|
# Sentry flag
|
||||||
|
@ -171,6 +171,8 @@ def login(
|
|||||||
# If we're in production, override any uid with the uid from the SSO request headers
|
# If we're in production, override any uid with the uid from the SSO request headers
|
||||||
if _is_production():
|
if _is_production():
|
||||||
uid = _get_request_uid(request)
|
uid = _get_request_uid(request)
|
||||||
|
else:
|
||||||
|
uid = app.config['DEFAULT_UID']
|
||||||
|
|
||||||
if uid:
|
if uid:
|
||||||
app.logger.info("SSO_LOGIN: Full URL: " + request.url)
|
app.logger.info("SSO_LOGIN: Full URL: " + request.url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user