-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
Hi, I have my django project configured with graphene, django-auth-ldap and django graphql jwt. I've made the configuration and set a query with @login_required and when I pass in headers the token from token_auth query I get "User is disabled" error. This is what I have in my setting.py:
AUTH_LDAP_SERVER_URI = "ldap://xxxx.xxxx.xx"
AUTH_LDAP_USER_DN_TEMPLATE = 'cn=%(user)[email protected],ou=users,dc=xxxx,dc=xx'
AUTH_LDAP_ALWAYS_UPDATE_USER = True
AUTH_LDAP_FIND_GROUP_PERMS = True
AUTH_LDAP_CACHE_TIMEOUT = 3600
AUTHENTICATION_BACKENDS = [
"graphql_jwt.backends.JSONWebTokenBackend",
"django_auth_ldap.backend.LDAPBackend",
"django.contrib.auth.backends.ModelBackend",
]
Metadata
Metadata
Assignees
Labels
No labels