Unified User Platform - Service which provides authentication to other products.
- Python 3.11+
- Docker
- Create
.env
file and copy the content of.env.example
to it (don't forget to change env variables):
touch .env
cp .env.example .env
- Create
venv
:
mkdir venv
cd venv
python -m venv .
cd ..
source venv/bin/activate
- Install requirements:
pip install -r requirements.txt
- Build and start Docker containers:
docker compose up -d --build
- Create superuser:
docker compose exec platform python manage.py createsuperuser --noinput
Note: Check superuser credentials in .env
file.
- To clear all blacklisted refresh tokens which have expired:
docker compose exec platform python manage.py flushexpiredtokens