mirror of
https://github.com/ansible/awx.git
synced 2026-03-15 16:07:30 -02:30
Merge pull request #2278 from rooftopcellist/fix_dot_oauth2_error
Fix dot oauth2 error
This commit is contained in:
@@ -234,8 +234,11 @@ class APIView(views.APIView):
|
|||||||
was attempted.
|
was attempted.
|
||||||
"""
|
"""
|
||||||
for authenticator in self.get_authenticators():
|
for authenticator in self.get_authenticators():
|
||||||
resp_hdr = authenticator.authenticate_header(request)
|
try:
|
||||||
if not resp_hdr:
|
resp_hdr = authenticator.authenticate_header(request)
|
||||||
|
if not resp_hdr:
|
||||||
|
continue
|
||||||
|
except AttributeError:
|
||||||
continue
|
continue
|
||||||
req_hdr = get_authorization_header(request)
|
req_hdr = get_authorization_header(request)
|
||||||
if not req_hdr:
|
if not req_hdr:
|
||||||
|
|||||||
Reference in New Issue
Block a user