Created
June 28, 2015 20:56
-
-
Save sebastienlevert/f20b850228546aa942cf to your computer and use it in GitHub Desktop.
01-Get-AccessToken
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$global:AzureADApplicationTenantId = "00000000-0000-0000-0000-000000000000" | |
$global:AzureADApplicationClientId = "00000000-0000-0000-0000-000000000000" | |
$global:AzureADApplicationCertificatePath = "C:\Certificate.pfx" | |
$global:AzureADApplicationCertificatePassword = "Password" | |
$exchangeResourceUri = "https://outlook.office365.com/"; | |
. .\Get-AccessToken.ps1 | |
. .\Is-Guid.ps1 | |
$accessToken = Get-AccessToken -ResourceUri $exchangeResourceUri |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment