You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: MiniGraph/MiniGraph.psd1
+8-7
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
RootModule='MiniGraph.psm1'
5
5
6
6
# Version number of this module.
7
-
ModuleVersion='1.2.7'
7
+
ModuleVersion='1.3.12'
8
8
9
9
# Supported PSEditions
10
10
# CompatiblePSEditions = @()
@@ -63,14 +63,15 @@ Description = 'Minimal query infrastructure for interacting with MS Graph'
63
63
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
64
64
FunctionsToExport=@(
65
65
'Connect-GraphAzure'
66
-
'Connect-GraphCertificate'
67
-
'Connect-GraphClientSecret'
68
-
'Connect-GraphCredential'
66
+
'Connect-GraphBrowser'
67
+
'Connect-GraphCertificate'
68
+
'Connect-GraphClientSecret'
69
+
'Connect-GraphCredential'
69
70
'Connect-GraphDeviceCode'
70
71
'Connect-GraphToken'
71
-
'Invoke-GraphRequest'
72
-
'Invoke-GraphRequestBatch'
73
-
'Set-GraphEndpoint'
72
+
'Invoke-GraphRequest'
73
+
'Invoke-GraphRequestBatch'
74
+
'Set-GraphEndpoint'
74
75
)
75
76
76
77
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
catch { Invoke-TerminatingException-Cmdlet $PSCmdlet-Message "Failed to create local http listener on port $LocalPort. Use -LocalPort to select a different port. $_"-Category OpenError }
Invoke-TerminatingException-Cmdlet $PSCmdlet-Message "Authentication failed (see browser for details)"-Category AuthenticationError
146
+
}
147
+
148
+
if ($state-ne$stateReturn.Split("=")[1]) {
149
+
Invoke-TerminatingException-Cmdlet $PSCmdlet-Message "Received invalid authentication result. Likely returned from another flow redirecting to the same local port!"-Category InvalidOperation
try { $authResponse=Invoke-RestMethod-Method Post -Uri $uri-Body $body-ErrorAction Stop }
163
+
catch {
164
+
if ($_-notmatch'"error":\s*"invalid_client"') { Invoke-TerminatingException-Cmdlet $PSCmdlet-ErrorRecord $_ }
165
+
Invoke-TerminatingException-Cmdlet $PSCmdlet-Message "The App Registration $ClientID has not been configured correctly. Ensure you have a 'Mobile and desktop applications' platform with redirect to 'http://localhost' configured (and not a 'Web' Platform). $_"-Category $_.CategoryInfo.Category
0 commit comments