mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Merge 6a8116af1a
into 836e49b535
This commit is contained in:
commit
c7d32bbafa
|
@ -183,7 +183,11 @@ class APIView(View):
|
|||
"""
|
||||
authenticators = self.get_authenticators()
|
||||
if authenticators:
|
||||
return authenticators[0].authenticate_header(request)
|
||||
for authenticator in authenticators:
|
||||
authenticate_header = authenticator.authenticate_header(request)
|
||||
if authenticate_header:
|
||||
return authenticate_header
|
||||
return None
|
||||
|
||||
def get_parser_context(self, http_request):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user