Name: SciReg
Owner: Harvard Medical School - Department of Biomedical Informatics
Description: null
Created: 2016-08-11 21:54:32.0
Updated: 2017-11-27 11:28:41.0
Pushed: 2018-01-13 20:05:37.0
Homepage: null
Size: 76
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This service keeps track of user information. Like the other Sci projects this service uses the DBMI_JWT to maintain an identity session.
In order to verify the signature on the JWT we need the same secret as it was signed with in Auth0. You'll see the below setting which utilizes this secret. This service has both form based and REST call based authentication.
AUTH = {
'JWT_SECRET_KEY': base64.b64decode(os.environ.get("AUTH0_SECRET", ""), '-_'),
'JWT_AUDIENCE': os.environ.get("AUTH0_CLIENT_ID"),
'JWT_PAYLOAD_GET_USERNAME_HANDLER': 'registration.permissions.jwt_get_username_from_payload'
0_CLIENT_ID = os.environ.get("AUTH0_CLIENT_ID")
0_SECRET = os.environ.get("AUTH0_SECRET")
0_SUCCESS_URL = os.environ.get("AUTH0_SUCCESS_URL")
0_LOGOUT_URL = os.environ.get("AUTH0_LOGOUT_URL")
ango config, move this to an ENV in the future
WED_HOSTS = ['registration.aws.dbmi.hms.harvard.edu']