Skip to content

Commit 857f9b4

Browse files
committed
Merge dev
1 parent ded3445 commit 857f9b4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Authentication/Authentication/Utilities/Runtime/Cmdlets/GetScriptCmdlet.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ protected override void ProcessRecord()
4949
.Distinct();
5050

5151
output = aliases.DefaultIfEmpty("''").ToArray();
52-
} else
52+
}
53+
else
5354
{
5455
var names = functionInfos.Select(fi => fi.Name).Distinct();
5556
output = names.DefaultIfEmpty("''").ToArray();

src/Authentication/Authentication/custom/Find-MgGraphPermission.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
33
# ------------------------------------------------------------------------------
44

5-
Set-StrictMode -Version 6.0
5+
Set-StrictMode -Version 2
66

77
. "$psscriptroot/common/Permissions.ps1"
88

src/Authentication/Authentication/custom/common/Permissions.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
33
# ------------------------------------------------------------------------------
44

5-
Set-StrictMode -Version 6.0
5+
Set-StrictMode -Version 2
66

77
$Permissions_msGraphApplicationId = '00000003-0000-0000-c000-000000000000'
88

@@ -34,7 +34,7 @@ function Permissions_GetPermissionsData([bool] $online) {
3434
# Make a REST request to MS Graph to get the permissions data from the Microsoft Graph service principal
3535
if ( $online -or ! $_permissions.msGraphServicePrincipal -or ! $_permissions.isFromInvokeMgGraphRequest ) {
3636
try {
37-
$restResult = Invoke-MgGraphRequest -method GET $_permissions.msGraphPermissionsRequestUri
37+
$restResult = Invoke-MgGraphRequest -method GET -OutputType PSObject $_permissions.msGraphPermissionsRequestUri
3838

3939
if ( $restResult ) {
4040
$_permissions.msGraphServicePrincipal = $restResult | Select-Object -ExpandProperty value

0 commit comments

Comments
 (0)