Keycloak and Django

Install Keyclooak locally

docker run -d -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=pass jboss/keycloak

Follow the guide here: https://blog.jonharrington.org/static/integrate-django-with-keycloak

Quickstart

Full tutotual for using django with keycloak

  1. Create a New Realm

  2. Create a New Client

    • OpenID Connect
    • Root URL: http://127.0.0.1:8000/
  3. Get your Client ID and Secret from the client page

  4. Get the OpenID Info from the realm page or at:

    http://:5000/auth/realms//.well-known/openid-configuration

Sources