A sample django application that is configured to use https://github.com/mozilla/mozilla-django-oidc locally.
docker and docker-compose installed locally
git clone this repository and change to the directory
For local development rename src/dev.sample.env to src/.env
OIDC_RP_CLIENT_ID and OIDC_RP_CLIENT_SECRET must be configured in .env before starting the application.
docker-compose builddocker-compose upAfter starting the development server, login by going to http://localhost:8000/hello/ and clicking 'Login'.
Alternatively, going to http://localhost:8000/hello/required/ will redirect you immediately to WebLogin.
docker-compose down