This commit is contained in:
Leonardo Arroyo 2017-06-06 15:26:22 +00:00 committed by GitHub
commit c7d32bbafa

View File

@ -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):
"""