Tests/Test-AadTokenUsingAdal.ps1
Remove-Module AadSupport Import-Module AaExperience Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" Write-Host "TEST Get-AadTokenUsingAdal" -ForegroundColor Yellow Get-AadTokenUsingAdal ` -ResourceId "https://graph.microsoft.com" ` -ClientId 83258bc7-b7fd-4627-ae9b-e3bd5d550572 ` -Redirect https://login.microsoftonline.com/common/oauth2/nativeclient ` -UserId "admin@williamfiddes.onmicrosoft.com" Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" Write-Host "TEST Get-AadTokenUsingAdal USING SPN LOOKUP" -ForegroundColor Yellow Get-AadTokenUsingAdal 'custom native app' ` -ResourceId "https://graph.microsoft.com" Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" Write-Host "TEST Get-AadTokenUsingAdal | CLIENT CREDENTIALS" -ForegroundColor Yellow Get-AadTokenUsingAdal 'custom web app' ` -ResourceId "https://graph.microsoft.com" ` -UseClientCredential ` -ClientSecret "P0rsche911" ` -Tenant williamfiddes.onmicrosoft.com |