From bca2079d571af7beac5a93c90f52984b06c00ee7 Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Thu, 23 May 2024 16:00:54 -0700 Subject: [PATCH] Use new app ID for OSS portal --- eng/common/scripts/Helpers/Metadata-Helpers.ps1 | 2 +- tools/identity-resolution/Helpers/GitHubToAADConverter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/common/scripts/Helpers/Metadata-Helpers.ps1 b/eng/common/scripts/Helpers/Metadata-Helpers.ps1 index 3df2c0684a71..6bd685dd8d54 100644 --- a/eng/common/scripts/Helpers/Metadata-Helpers.ps1 +++ b/eng/common/scripts/Helpers/Metadata-Helpers.ps1 @@ -10,7 +10,7 @@ function Generate-AadToken ($TenantId, $ClientId, $ClientSecret) "grant_type" = "client_credentials" "client_id" = $ClientId "client_secret" = $ClientSecret - "resource" = "api://2789159d-8d8b-4d13-b90b-ca29c1707afd" + "resource" = "api://66b6ea26-954d-4b68-8f48-71e3faec7ad1" } Write-Host "Generating aad token..." $resp = Invoke-RestMethod $LoginAPIBaseURI -Method 'POST' -Headers $headers -Body $body diff --git a/tools/identity-resolution/Helpers/GitHubToAADConverter.cs b/tools/identity-resolution/Helpers/GitHubToAADConverter.cs index 9f2cd93ae762..9e8129492a13 100644 --- a/tools/identity-resolution/Helpers/GitHubToAADConverter.cs +++ b/tools/identity-resolution/Helpers/GitHubToAADConverter.cs @@ -77,7 +77,7 @@ private async Task GetPeopleLinksAsync() try { // This is aad scope of opensource rest API. - string[] scopes = new [] { "api://2789159d-8d8b-4d13-b90b-ca29c1707afd/.default" }; + string[] scopes = new [] { "api://66b6ea26-954d-4b68-8f48-71e3faec7ad1/.default" }; opsAuthToken = await credential.GetTokenAsync(new TokenRequestContext(scopes), CancellationToken.None); } catch (Exception ex)