hms-dbmi/SciReg

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

SciReg

This service keeps track of user information. Like the other Sci projects this service uses the DBMI_JWT to maintain an identity session.

Required Configurations

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.

Auth0
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")
Other configs
ango config, move this to an ENV in the future
WED_HOSTS = ['registration.aws.dbmi.hms.harvard.edu']

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.