This repo holds an example Python/Django application that uses FusionAuth as the identity provider.
This application was built by following the Python/Django Quickstart.
The docker-compose.yml
file and the kickstart
directory are used to start and configure a local FusionAuth server.
The /complete-application
directory contains a fully working version of the application.
- Docker, for running FusionAuth.
- Python 3.8 or later, for running the Changebank Python application.
- mozilla-django-oidc library
To run FusionAuth, just start up the docker containers using docker-compose
.
docker-compose up
This will start a PostgreSQL database, and Elastic service, and the FusionAuth server.
To run the application set up a Python virtual env and install the project dependencies.
cd complete-application && \
python -m venv venv && \
source venv/bin/activate && \
pip install -r requirements.txt && \
python mysite/manage.py runserver
Visit the local webserver at http://localhost:8000/
and sign in using the credentials:
- username: richard@example.com
- password: password