Skip to content

Commit e0c72c4

Browse files
authored
Merge pull request #1305 from KelvinTegelaar/dev
Dev to hotfix
2 parents c1ff826 + 9747c43 commit e0c72c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Setup/Invoke-ExecSAMSetup.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Function Invoke-ExecSAMSetup {
9494
$clientsecret = Get-AzKeyVaultSecret -VaultName $kv -Name 'ApplicationSecret' -AsPlainText
9595
}
9696
if (!$clientsecret) { $clientsecret = $ENV:ApplicationSecret }
97-
Write-Information "client_id=$appid&scope=https://graph.microsoft.com/.default+offline_access+openid+profile&code=$($Request.Query.code)&grant_type=authorization_code&redirect_uri=$($url)&client_secret=$clientsecret" -Uri "https://login.microsoftonline.com/$TenantId/oauth2/v2.0/token"
97+
Write-Information "client_id=$appid&scope=https://graph.microsoft.com/.default+offline_access+openid+profile&code=$($Request.Query.code)&grant_type=authorization_code&redirect_uri=$($url)&client_secret=$clientsecret" #-Uri "https://login.microsoftonline.com/$TenantId/oauth2/v2.0/token"
9898
$RefreshToken = Invoke-RestMethod -Method POST -Body "client_id=$appid&scope=https://graph.microsoft.com/.default+offline_access+openid+profile&code=$($Request.Query.code)&grant_type=authorization_code&redirect_uri=$($url)&client_secret=$clientsecret" -Uri "https://login.microsoftonline.com/$TenantId/oauth2/v2.0/token" -ContentType 'application/x-www-form-urlencoded'
9999

100100
if ($env:AzureWebJobsStorage -eq 'UseDevelopmentStorage=true') {

version_latest.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.2.0
1+
7.2.1

0 commit comments

Comments
 (0)