Skip to content

Commit feff2ff

Browse files
committed
ci(github-actions): fix microsoft graph auth endpoint and scope
- replace deprecated v2 token endpoint with standard oauth2 endpoint - switch from scope parameter to resource parameter for azure ad auth
1 parent 3cd0dc6 commit feff2ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,9 @@ jobs:
465465
grant_type = "client_credentials"
466466
client_id = $clientId
467467
client_secret = $clientSecret
468-
scope = "https://manage.devcenter.microsoft.com/.default"
468+
resource = "https://manage.devcenter.microsoft.com"
469469
}
470-
$tokenResponse = Invoke-RestMethod -Uri "https://login.microsoftonline.com/$tenantId/oauth2/v2.0/token" -Method POST -Body $tokenBody
470+
$tokenResponse = Invoke-RestMethod -Uri "https://login.microsoftonline.com/$tenantId/oauth2/token" -Method POST -Body $tokenBody
471471
$accessToken = $tokenResponse.access_token
472472
Write-Host "Got access token"
473473

0 commit comments

Comments
 (0)