Skip to content

Commit

Permalink
Add comment on what X-TFS-FedAuthRedirect does.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsonkhan committed Sep 21, 2024
1 parent 56d245d commit b5e4794
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Request AzurePipelinesCredential::CreateOidcRequestMessage() const
Request request = Request(HttpMethod::Post, requestUrl);
request.SetHeader("content-type", "application/json");
request.SetHeader("authorization", "Bearer " + m_systemAccessToken);

// Prevents the service from responding with a redirect HTTP status code (useful for automation).
request.SetHeader("X-TFS-FedAuthRedirect", "Suppress");

return request;
Expand Down

0 comments on commit b5e4794

Please sign in to comment.