django-oidc-provider/example_project
2015-08-04 15:34:59 -03:00
..
provider_app Edit settings in example app. 2015-08-04 15:34:30 -03:00
.gitignore Edit .gitignore in example project. 2015-08-04 15:34:59 -03:00
manage.py Update example project. 2015-04-28 14:55:35 -03:00
README.md Update project example README. 2015-07-17 11:37:05 -03:00
requirements.txt Bump version v0.1.2. 2015-08-03 15:27:28 -03:00

Example Project

Run your own OIDC provider in a second. This is a Django app with all the necessary things to work with django-oidc-provider package.

Setup & Running

Setup project environment with virtualenv and pip.

# For Python 2.7.
$ virtualenv project_env
# Or Python 3.
$ virtualenv -p /usr/bin/python3.4 project_env

$ source project_env/bin/activate

$ git clone https://github.com/juanifioren/django-oidc-provider.git
$ cd django-oidc-provider/example_project
$ pip install -r requirements.txt

Run your provider.

$ python manage.py migrate
$ python manage.py creatersakey
$ python manage.py runserver

Open your browser and go to http://localhost:8000. Voilà!

Install package for development

After you run pip install -r requirements.txt.

# Remove pypi package.
$ pip uninstall django-oidc-provider

# Go back and add the package again.
$ cd ..
$ pip install -e .