mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Use AWX base view to make unauth requests 401 (#14981)
This commit is contained in:
parent
9dcc11d54c
commit
35a5a81e19
@ -880,6 +880,7 @@ LOGGING = {
|
||||
'loggers': {
|
||||
'django': {'handlers': ['console']},
|
||||
'django.request': {'handlers': ['console', 'file', 'tower_warnings'], 'level': 'WARNING'},
|
||||
'ansible_base': {'handlers': ['console', 'file', 'tower_warnings']},
|
||||
'daphne': {'handlers': ['console', 'file', 'tower_warnings'], 'level': 'INFO'},
|
||||
'rest_framework.request': {'handlers': ['console', 'file', 'tower_warnings'], 'level': 'WARNING', 'propagate': False},
|
||||
'py.warnings': {'handlers': ['console']},
|
||||
@ -1174,3 +1175,6 @@ ANSIBLE_BASE_ALLOW_SINGLETON_ROLES_API = False # Do not allow creating user-def
|
||||
|
||||
# system username for django-ansible-base
|
||||
SYSTEM_USERNAME = None
|
||||
|
||||
# Use AWX base view, to give 401 on unauthenticated requests
|
||||
ANSIBLE_BASE_CUSTOM_VIEW_PARENT = 'awx.api.generics.APIView'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user