diff --git a/awx/api/authentication.py b/awx/api/authentication.py index 5f410c8b11..1086778897 100644 --- a/awx/api/authentication.py +++ b/awx/api/authentication.py @@ -133,6 +133,11 @@ class LoggedBasicAuthentication(authentication.BasicAuthentication): logger.debug(smart_text(u"User {} performed a {} to {} through the API".format(username, request.method, request.path))) return ret + def authenticate_header(self, request): + if not settings.AUTH_BASIC_ENABLED: + return + return super(LoggedBasicAuthentication, self).authenticate_header(request) + class TaskAuthentication(authentication.BaseAuthentication): '''