django-oidc-provider/example_project
Ignacio 7f5f1eb584 Merge branch 'v0.3.x' of https://github.com/juanifioren/django-oidc-provider into v0.3.x
Conflicts:
	example_project/provider_app/templates/base.html
	example_project/provider_app/templates/login.html
	example_project/provider_app/templates/oidc_provider/authorize.html
	example_project/provider_app/templates/oidc_provider/error.html
2016-04-16 18:02:26 -03:00
..
provider_app Merge branch 'v0.3.x' of https://github.com/juanifioren/django-oidc-provider into v0.3.x 2016-04-16 18:02:26 -03:00
.gitignore Edit gitignore. 2016-04-07 19:45:12 -03:00
Dockerfile add docker file to the example project 2016-01-23 17:04:34 -08:00
manage.py Update example project. 2015-04-28 14:55:35 -03:00
README.md Modify example project template. 2016-04-16 17:59:10 -03:00
requirements.txt Bump version v0.3.0. 2016-02-23 15:31:07 -03:00

Example Project

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

Manually

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à!

Using Docker

Build and run the container.

$ docker build -t django-oidc-provider .
$ docker run -d -p 8000:8000 django-oidc-provider

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 .