2020-02-05 20:17:47 +00:00
|
|
|
import os
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
NAME = "CR Connect Workflow"
|
|
|
|
DEVELOPMENT = True
|
|
|
|
TESTING = True
|
|
|
|
SQLALCHEMY_DATABASE_URI = "postgresql://postgres:@localhost:5432/crc_test"
|
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" # Not Required
|
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 22:23:10 +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-04-15 18:03:04 +00:00
|
|
|
|
|
|
|
print('+++ USING TRAVIS TESTING CONFIG: +++')
|
|
|
|
print('SQLALCHEMY_DATABASE_URI = ', SQLALCHEMY_DATABASE_URI)
|
|
|
|
print('DEVELOPMENT = ', DEVELOPMENT)
|
|
|
|
print('TESTING = ', TESTING)
|
|
|
|
print('FRONTEND_AUTH_CALLBACK = ', FRONTEND_AUTH_CALLBACK)
|