This is repository a study on SSO authentication between Django and Keycloak.
- Clone this repository
- Create a Keycloak docker
docker run --name keycloak -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=password jboss/keycloak
-
Configure Keycloak server
See how to configuration Keycloak server on wiki Keyclaok Configuration
-
Install requeriments
pip install -r requirements.txt
-
Configuration Django-Keycloak
See how to configuration Django-Keycloak lib on wiki Django-Keyclaok Configuration
-
Run migrations Django
python manage.py migrate
- Run application Django
python manage.py runserver
- user: admin
- password: password
- url server: http://localhost:8080