/djangoSSO

Repository of a Django application authenticating in Keycloak

Primary LanguagePythonMIT LicenseMIT

DjangoSSO

This is repository a study on SSO authentication between Django and Keycloak.

QuickStart

  1. Clone this repository
  2. Create a Keycloak docker
docker run --name keycloak -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=password  jboss/keycloak
  1. Configure Keycloak server

    See how to configuration Keycloak server on wiki Keyclaok Configuration

  2. Install requeriments

pip install -r requirements.txt
  1. Configuration Django-Keycloak

    See how to configuration Django-Keycloak lib on wiki Django-Keyclaok Configuration

  2. Run migrations Django

python manage.py migrate
  1. Run application Django
python manage.py runserver

Keycloak server information

References