Skip to content

Commit

Permalink
Use AWX base view to make unauth requests 401 (#14981)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Mar 19, 2024
1 parent b734cc7 commit 1a6ca6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions awx/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@
'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']},
Expand Down Expand Up @@ -1174,3 +1175,6 @@

# 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'

0 comments on commit 1a6ca6a

Please sign in to comment.