2019-12-18 19:02:17 +00:00
|
|
|
import os
|
2020-02-20 20:35:07 +00:00
|
|
|
|
2019-12-18 19:02:17 +00:00
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
2019-11-21 16:36:32 +00:00
|
|
|
NAME = "CR Connect Workflow"
|
|
|
|
CORS_ENABLED = False
|
|
|
|
DEVELOPMENT = True
|
2020-02-05 02:42:09 +00:00
|
|
|
SQLALCHEMY_DATABASE_URI = "postgresql://crc_user:crc_pass@localhost:5432/crc_dev"
|
2020-02-18 21:38:56 +00:00
|
|
|
TOKEN_AUTH_TTL_HOURS = 2
|
|
|
|
TOKEN_AUTH_SECRET_KEY = "Shhhh!!! This is secret! And better darn well not show up in prod."
|
2020-02-21 02:10:34 +00:00
|
|
|
FRONTEND_AUTH_CALLBACK = "http://localhost:4200/session"
|
2020-03-24 18:15:21 +00:00
|
|
|
SWAGGER_AUTH_KEY = "SWAGGER"
|
2020-02-18 21:38:56 +00:00
|
|
|
|
|
|
|
#: Default attribute map for single signon.
|
|
|
|
SSO_ATTRIBUTE_MAP = {
|
|
|
|
'eppn': (False, 'eppn'), # dhf8r@virginia.edu
|
|
|
|
'uid': (True, 'uid'), # dhf8r
|
2020-02-20 20:35:07 +00:00
|
|
|
'givenName': (False, 'first_name'), # Daniel
|
|
|
|
'mail': (False, 'email_address'), # dhf8r@Virginia.EDU
|
|
|
|
'sn': (False, 'last_name'), # Funk
|
|
|
|
'affiliation': (False, 'affiliation'), # 'staff@virginia.edu;member@virginia.edu'
|
|
|
|
'displayName': (False, 'display_name'), # Daniel Harold Funk
|
2020-02-18 21:38:56 +00:00
|
|
|
'title': (False, 'title') # SOFTWARE ENGINEER V
|
|
|
|
}
|
2020-02-20 18:30:48 +00:00
|
|
|
|
|
|
|
# %s/%i placeholders expected for uva_id and study_id in various calls.
|
|
|
|
PB_USER_STUDIES_URL = "http://workflow.sartography.com:5001/pb/user_studies?uva_id=%s"
|
|
|
|
PB_INVESTIGATORS_URL = "http://workflow.sartography.com:5001/pb/investigators?studyid=%i"
|
|
|
|
PB_REQUIRED_DOCS_URL = "http://workflow.sartography.com:5001/pb/required_docs?studyid=%i"
|
|
|
|
PB_STUDY_DETAILS_URL = "http://workflow.sartography.com:5001/pb/study?studyid=%i"
|