django-oidc-provider/example
Juan Ignacio Fiorentino b803f8917d Update example project.
2018-03-23 17:06:44 -03:00
..
app Update example project. 2018-03-23 17:06:44 -03:00
.gitignore Update example project. 2018-03-23 17:06:44 -03:00
Dockerfile Update example project. 2018-03-23 17:06:44 -03:00
manage.py Update example project. 2018-03-23 17:06:44 -03:00
README.md Update example project. 2018-03-23 17:06:44 -03:00
requirements.txt Update example project. 2018-03-23 17:06:44 -03:00

Example Project

Example Project

On this example you'll be running 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.

$ virtualenv -p /usr/bin/python3 project_env

$ source project_env/bin/activate

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

Run your provider.

$ python manage.py migrate
$ python manage.py creatersakey
$ python manage.py createsuperuser
$ 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 to django-oidc-provider/ folder and add the package on editable mode.
$ cd ..
$ pip install -e .