diff --git a/rest_framework/views.py b/rest_framework/views.py index 8ec5f14ab..cc2b386b2 100644 --- a/rest_framework/views.py +++ b/rest_framework/views.py @@ -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): """