-
Notifications
You must be signed in to change notification settings - Fork 120
Description
I am having this issue: AttributeError at /keycloak/login
'NoneType' object has no attribute 'client' when attempting to login to my admin area on my site.
I have followed each of the directions listed here to install django-keycloak to my application: https://django-keycloak.readthedocs.io/en/latest/index.html
This is a snippet of my settings.py:
middleware = [
'django_keycloak.middleware.BaseKeycloakMiddleware',
'django_keycloak.middleware.RemoteUserAuthenticationMiddleware',
]
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
'pinax.announcements.auth_backends.AnnouncementPermissionsBackend',
'django_keycloak.auth.backends.KeycloakAuthorizationCodeBackend',
)
LOGIN_URL = 'keycloak_login'
urls.py
url(r'^keycloak/', include('django_keycloak.urls')),
Can someone please help me understand what is going on.
Also here are my setup for keycloak:
- Keycloak installed on localhost
- Postgres database
- Client with Client ID and Secret are setup with Realm