diff --git a/awx/settings/defaults.py b/awx/settings/defaults.py index a4472ced6e..3ad62ca8b2 100644 --- a/awx/settings/defaults.py +++ b/awx/settings/defaults.py @@ -1131,3 +1131,6 @@ include(settings_file) # example if set to '' API pattern will be /api # example if set to 'controller' API pattern will be /api AND /api/controller OPTIONAL_API_URLPATTERN_PREFIX = '' + +# Use AWX base view, to give 401 on unauthenticated requests +ANSIBLE_BASE_CUSTOM_VIEW_PARENT = 'awx.api.generics.APIView'