mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Don't prompt for basic auth if AUTH_BASIC_ENABLED is False.
This commit is contained in:
parent
29cc5d0f2e
commit
48391dfa5e
@ -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):
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user