Reduce token service and unnecessary calls - send token to redirects (#2660)

* handle redirects with token

* scope to broker

* lint
This commit is contained in:
Yashwanth Anantharaju
2023-06-16 09:23:13 -04:00
committed by GitHub
parent 1096b975e4
commit 471e3ae2d9
3 changed files with 42 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ namespace GitHub.Runner.Sdk
if (StringUtil.ConvertToBoolean(Environment.GetEnvironmentVariable("USE_BROKER_FLOW")))
{
settings.AllowAutoRedirect = true;
settings.AllowAutoRedirectForBroker = true;
}
// Remove Invariant from the list of accepted languages.