Commit 4026f60d authored by Auke Klazema's avatar Auke Klazema

TMSS-143: Add ModelBackend to Authentication backends

parent a53aa4c1
......@@ -212,7 +212,8 @@ if "OIDC_RP_CLIENT_ID" in os.environ.keys():
OIDC_OP_TOKEN_ENDPOINT = os.environ.get('OIDC_OP_TOKEN_ENDPOINT', "http://localhost:8088/openid/token")
OIDC_OP_USER_ENDPOINT = os.environ.get('OIDC_OP_USER_ENDPOINT', "http:/localhost:8088/openid/userinfo")
AUTHENTICATION_BACKENDS = ('mozilla_django_oidc.auth.OIDCAuthenticationBackend',)
AUTHENTICATION_BACKENDS = ('mozilla_django_oidc.auth.OIDCAuthenticationBackend',
'django.contrib.auth.backends.ModelBackend')
elif "TMSS_LDAPCREDENTIALS" in os.environ.keys():
# plain LDAP
import ldap
......
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