mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 10:27:34 -02:30
Don't prompt for basic auth if AUTH_BASIC_ENABLED is False.
This commit is contained in:
@@ -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)))
|
logger.debug(smart_text(u"User {} performed a {} to {} through the API".format(username, request.method, request.path)))
|
||||||
return ret
|
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):
|
class TaskAuthentication(authentication.BaseAuthentication):
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user