mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
AC-170 Disable REST session auth and Django admin by default.
This commit is contained in:
@@ -117,7 +117,6 @@ ROOT_URLCONF = 'awx.urls'
|
||||
WSGI_APPLICATION = 'awx.wsgi.application'
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.messages',
|
||||
@@ -133,6 +132,8 @@ INSTALLED_APPS = (
|
||||
'awx.main',
|
||||
'awx.api',
|
||||
'awx.ui',
|
||||
# Django admin is disabled and not supported by default.
|
||||
#'django.contrib.admin',
|
||||
)
|
||||
|
||||
INTERNAL_IPS = ('127.0.0.1',)
|
||||
@@ -144,7 +145,7 @@ REST_FRAMEWORK = {
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||
'rest_framework.authentication.BasicAuthentication',
|
||||
'awx.api.authentication.TokenAuthentication',
|
||||
'rest_framework.authentication.SessionAuthentication',
|
||||
#'rest_framework.authentication.SessionAuthentication',
|
||||
),
|
||||
'DEFAULT_PERMISSION_CLASSES': (
|
||||
'awx.api.permissions.ModelAccessPermission',
|
||||
|
||||
Reference in New Issue
Block a user