# Add keycloak authentication to an existing application where "social\_django" is installed

**URL:** <https://forum.djangoproject.com/t/add-keycloak-authentication-to-an-existing-application-where-social-django-is-installed/40817>\
**Category:** Using Django\
**Created:** [May 7, 2025, 3:02pm UTC](https://forum.djangoproject.com/t/add-keycloak-authentication-to-an-existing-application-where-social-django-is-installed/40817 "2025-05-07T15:02:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toulouse](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/toulouse/32/28422_2.png) [@toulouse](https://forum.djangoproject.com/u/toulouse)\
**Post date:** [May 7, 2025, 3:02pm UTC](https://forum.djangoproject.com/t/add-keycloak-authentication-to-an-existing-application-where-social-django-is-installed/40817/1 "2025-05-07T15:02:14Z")

</div>

Hi, I’m trying to add keycloak authentication to dango social auth. In the project’s settings.py I found as installed apps.

```auto
INSTALLED_APPS = [
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "whitenoise.runserver_nostatic",
    "django.contrib.staticfiles",
    "django.forms",
    "social_django",
    "rest_framework",
    "django_filters",
    "hermine",
    "cube.apps.CubeConfig",
    "drf_yasg",
]

```

Now I’m looking for a detailed description, how can I add/use an existing keycloak realm for authentication, where I have already added a client `hermine`, that I would like to use for authentication.

Any hints/help are/is welcome. Many thanks in advance!
