Skip to content

Commit

Permalink
Update to newer resource id for open source api (#9004)
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard authored Sep 18, 2024
1 parent b34a32b commit 1716bb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eng/common/scripts/Helpers/Metadata-Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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://2efaf292-00a0-426c-ba7d-f5d2b214b8fc"
}
Write-Host "Generating aad token..."
$resp = Invoke-RestMethod $LoginAPIBaseURI -Method 'POST' -Headers $headers -Body $body
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/live-test-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ stages:
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
$jwt_accessToken = az account get-access-token --resource "api://2789159d-8d8b-4d13-b90b-ca29c1707afd" --query "accessToken" --output tsv
$jwt_accessToken = az account get-access-token --resource "api://2efaf292-00a0-426c-ba7d-f5d2b214b8fc" --query "accessToken" --output tsv
Write-Host "##vso[task.setvariable variable=opensource-api-token;isSecret=true]$jwt_accessToken"
- ${{ each subscription in parameters.Subscriptions }}:
Expand Down
2 changes: 1 addition & 1 deletion tools/identity-resolution/Helpers/GitHubToAADConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private async Task<UserLink[]> GetPeopleLinksAsync()
try
{
// This is aad scope of opensource rest API.
string[] scopes = new [] { "66b6ea26-954d-4b68-8f48-71e3faec7ad1/.default" };
string[] scopes = new [] { "2efaf292-00a0-426c-ba7d-f5d2b214b8fc/.default" };
opsAuthToken = await credential.GetTokenAsync(new TokenRequestContext(scopes), CancellationToken.None);
}
catch (Exception ex)
Expand Down

0 comments on commit 1716bb6

Please sign in to comment.