Comments (2)
Under https://django-keycloak.readthedocs.io/en/latest/index.html#setup is the point
AUTHENTICATION_BACKENDS = [ ... 'django_keycloak.auth.backends.KeycloakAuthorizationCodeBackend', ]
but in an "vanilla" settings file is no
AUTHENTICATION_BACKENDS
so the...
need to be replace with the default value (see https://docs.djangoproject.com/en/3.1/ref/settings/#auth):'django.contrib.auth.backends.ModelBackend',
, so that it looks like thisAUTHENTICATION_BACKENDS = [ 'django.contrib.auth.backends.ModelBackend', 'django_keycloak.auth.backends.KeycloakAuthorizationCodeBackend', ]
else the django superuser can not login to the django admin. I banged my head for 2 hours against that, so I leave a clue here for others ...
Thank you very much.
from django-keycloak.
Under https://django-keycloak.readthedocs.io/en/latest/index.html#setup is the point
AUTHENTICATION_BACKENDS = [ ... 'django_keycloak.auth.backends.KeycloakAuthorizationCodeBackend', ]
but in an "vanilla" settings file is no
AUTHENTICATION_BACKENDS
so the...
need to be replace with the default value (see https://docs.djangoproject.com/en/3.1/ref/settings/#auth):'django.contrib.auth.backends.ModelBackend',
, so that it looks like thisAUTHENTICATION_BACKENDS = [ 'django.contrib.auth.backends.ModelBackend', 'django_keycloak.auth.backends.KeycloakAuthorizationCodeBackend', ]
else the django superuser can not login to the django admin. I banged my head for 2 hours against that, so I leave a clue here for others ...
Thanks, this was helpful
from django-keycloak.
Related Issues (20)
- ModuleNotFoundError: No module named 'factory' HOT 1
- ERROR: unsatisfiable constraints: python-dev (missing): HOT 1
- Unable to refresh OIDC .well-known or certificates HOT 2
- Forbidden for my realm HOT 2
- Compatible with Django and Python version
- Project status? HOT 2
- Keycloak user creation Error
- No access_token provided to compare against at_hash claim. HOT 13
- Bad Request For Permission Synchronisation HOT 2
- Migrating Passwords From Keycloak To Django
- AttributeError at /keycloak/login 'NoneType' object has no attribute 'client' HOT 1
- Changing the LOGIN_REDIRECT_URL to different page
- Access token not decoded within token object
- KeyError thrown on refresh_token missing in response token
- Support for the current version of UMA
- Is it safe to use this library in any environment?, particularly production? HOT 9
- Issue while Migrating from Django Auth to Keycloak
- AUTHENTICATION_BACKENDS does not allow to login with super user HOT 1
- ConnectionError at /admin/django_keycloak/realm/
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-keycloak.