Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUTHENTICATION_BACKENDS does not allow to login with super user #75

Open
yasirgit opened this issue Jun 12, 2023 · 1 comment
Open

AUTHENTICATION_BACKENDS does not allow to login with super user #75

yasirgit opened this issue Jun 12, 2023 · 1 comment

Comments

@yasirgit
Copy link

When AUTHENTICATION_BACKENDS is used in settings.py, the usual login does not work. However, after commenting it login work as per the expectation.

What would be the fix for this?

@dimaioksha
Copy link

dimaioksha commented Jun 15, 2023

You should add "django.contrib.auth.backends.ModelBackend" to your AUTHENTICATION_BACKENDS:

AUTHENTICATION_BACKENDS = [
        "django.contrib.auth.backends.ModelBackend",
        "django_keycloak.auth.backends.KeycloakAuthorizationCodeBackend",
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants