From 7867d49593d407636d2cd4202cc608da9bfb5f2f Mon Sep 17 00:00:00 2001 From: Xeryus Stokkel Date: Mon, 17 Jan 2022 11:42:44 +0100 Subject: [PATCH] Update settings --- scim_app/scim_app/settings.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scim_app/scim_app/settings.py b/scim_app/scim_app/settings.py index 22a13a8..52c4367 100644 --- a/scim_app/scim_app/settings.py +++ b/scim_app/scim_app/settings.py @@ -136,7 +136,7 @@ STATIC_URL = 'static/' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' SCIM_SERVICE_PROVIDER = { - 'NETLOC': 'localhost', + 'NETLOC': 'scim.xeryus.rug.nl', 'AUTHENTICATION_SCHEMES': [ { 'type': 'oauth2', @@ -149,7 +149,9 @@ SCIM_SERVICE_PROVIDER = { STATIC_ROOT = '/var/www/scim_app/static' STATIC_URL = '/static/' -BASICAUTH_USERS = { - 'xeryus': 'development', - 'scim': 'scim', -} +LOGIN_URL = '/admin/login/' + +AUTHENTICATION_BACKENDS = [ + 'oauth2_provider.backends.OAuth2Backend', + 'django.contrib.auth.backends.ModelBackend', +]