Skip to content

Commit

Permalink
chore: Pause automatic requests to MDS Universe Domain endpoint.
Browse files Browse the repository at this point in the history
This applies to Discovery based libraries only. There will be an accompanying PR for GAPICs.

Towards b/371768149
  • Loading branch information
amanda-tarafa committed Nov 5, 2024
1 parent 2043b60 commit dd89da6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Src/Support/Google.Apis.Auth/OAuth2/GoogleCredential.cs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,9 @@ public static GoogleCredential FromServiceAccountCredential(ServiceAccountCreden
// Proxy IHttpExecuteInterceptor's only method.
async Task IHttpExecuteInterceptor.InterceptAsync(HttpRequestMessage request, CancellationToken cancellationToken)
{
if (request?.TryGetOption(GoogleAuthConsts.UniverseDomainKey, out string targetUniverseDomain) == true)
if (request?.TryGetOption(GoogleAuthConsts.UniverseDomainKey, out string targetUniverseDomain) == true
// b/377378462 Temporarily avoid automatic requests to the MDS UniverseDomain endpoint.
&& UnderlyingCredential is not ComputeCredential)
{
string credentialUniverseDomain = await credential.GetUniverseDomainAsync(cancellationToken).ConfigureAwait(false);
if (targetUniverseDomain != credentialUniverseDomain)
Expand Down

0 comments on commit dd89da6

Please sign in to comment.