incomplete support to user and project management
[osm/LW-UI.git] / sf_t3d / settings.py
index 658bafd..36de1b6 100644 (file)
@@ -27,7 +27,7 @@ DEBUG = True
 
 ALLOWED_HOSTS = []
 
-AUTH_USER_MODEL = "sf_user.CustomUser"
+AUTH_USER_MODEL = "authosm.OsmUser"
 
 SITE_NAME = "Open Source MANO"
 SHORT_SITE_NAME = "OSM"
@@ -46,10 +46,12 @@ INSTALLED_APPS = [
     'django.contrib.messages',
     'django.contrib.staticfiles',
     'sf_user',
+    'authosm',
     'projecthandler',
     'vimhandler',
     'instancehandler',
-    'sdnctrlhandler'
+    'sdnctrlhandler',
+
 ]
 
 MIDDLEWARE_CLASSES = [
@@ -113,6 +115,8 @@ DATABASES = {
     }
 }
 
+AUTHENTICATION_BACKENDS = ['authosm.backend.OsmBackend']
+
 
 # Password validation
 # https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators