Automatically handle authentication header name depending on the endpoint.