Commit 0b9d1a09 authored by Jorrit Schaap's avatar Jorrit Schaap

TMSS-138: plain django authentication backend and LDAp backend should work together

parent 1b6bc0ea
......@@ -228,7 +228,8 @@ elif "TMSS_LDAPCREDENTIALS" in os.environ.keys():
"email": "mail"
}
AUTHENTICATION_BACKENDS = ('django_auth_ldap.backend.LDAPBackend',)
AUTHENTICATION_BACKENDS = ('django_auth_ldap.backend.LDAPBackend',
'django.contrib.auth.backends.ModelBackend')
else:
REST_FRAMEWORK['DEFAULT_PERMISSION_CLASSES'].append('rest_framework.permissions.AllowAny')
logger.warning("No authentication configured! please set either OIDC_RP_CLIENT_ID or TMSS_LDAPCREDENTIALS environment variable.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment