Getting Started
Create and activate a virtual environment.
Windows:
python -m venv .venv
.venv\Scripts\activate
macOS / Linux:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
The OIDC provider requires an RSA key pair for token signing. Generate these in the project root:
# Generate Private key
openssl genrsa -out oidc_private.key 2048
# Generate Public key
openssl rsa -in oidc_private.key -pubout -out oidc_public.key
Initialize the database and prepare the OIDC application registry.
python manage.py runserver
- Unit Tests: Run
python manage.py test. - API Documentation: Once the server is running, visit /api/docs/ for the Swagger UI, get a JWT from /api/token/, and authorise at the top right of the view.