HHSIDEAlab/hhs_oauth_client

Name: hhs_oauth_client

Owner: HHS IDEA Lab

Description: HHS OAuth2 Client Example (Uses Python Social Auth)

Forked from: TransparentHealth/hhs_oauth_client

Created: 2017-05-15 16:17:05.0

Updated: 2017-05-15 16:17:06.0

Pushed: 2017-05-10 16:23:11.0

Homepage: https://client.oauth2.io

Size: 775

Language: CSS

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

HHS OAuth Client - An OAuth Provider Sample Project

Which Version of Python?

This application has been tested using Python 3.5.1

Quick Setup
git clone https://github.com/TransparentHealth/hhs_oauth_client.git
pip install -r requirements/requirements.txt
mkdir db
touch db/db.db
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
Running the tests

To run the tests against http://oauth.npi.io/ use:

python manage.py test --settings=hhs_oauth_client.settings.test

To run the tests against a local server instance (http://127.0.0.1:8000) use:

python manage.py test --settings=hhs_oauth_client.settings.test_local

N.B. Remember to launch python manage.py load_test_data on the server instance to create test users, apps and capabilities.


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.