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
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2017 v5.4.135
5
5
Created on: 2/8/2017 10:26 AM
6
+
Edited on:: 4/15/2017
6
7
Created by: Mark Kraus
7
8
Organization: Mitel
8
9
Filename: Get-GraphOauthAccessToken.ps1
@@ -33,16 +34,23 @@
33
34
34
35
You must set the resource to match the endpoints your token will be valid for.
35
36
36
-
Microsft Graph: https://outlook.office.com
37
+
Microsft Graph: https://graph.microsoft.com
37
38
Azure AD Graph API: https://graph.windows.net
38
39
Office 365 Unified Mail API: https://outlook.office.com
39
40
40
41
If you need to access more than one resrouce, you will need to request multiple OAuth Access Tokens and use the correct tokens for the correct endpoints.
41
-
42
-
.PARAMETERResultVariable
43
-
Name of a varibale to store the result from the Invoke-WebRequest. This should be used for debugging only as it stores the access_token and refresh_tokens in memory as plain text.
0 commit comments