Skip to content

Commit 617899e

Browse files
author
Freddy Kristiansen
authored
Merge pull request #2716 from microsoft/dev
Give error if scopes is wrong
2 parents fca9346 + 9cf781d commit 617899e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

AL-Go/New-ALGoAppSourceContext.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ function New-ALGoAppSourceContext {
55
[switch] $skipTest
66
)
77

8+
if ($authContext.scopes -ne "https://api.partner.microsoft.com/.default" -and $authContext.scopes -ne "https://api.partner.microsoft.com/") {
9+
Write-Host -ForegroundColor Red "AuthContext.Scopes is '$($authContext.Scopes)', should have been 'https://api.partner.microsoft.com/.default'"
10+
}
11+
812
if ($authContext.ClientSecret) {
913
$appSourceContext = [ordered]@{
1014
"clientID" = $authContext.clientID

0 commit comments

Comments
 (0)