Add keycloak authentication to an existing application where "social_django" is installed

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

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!