Forum Discussion
Petri-X
Dec 13, 2018Bronze Contributor
PowersHell and Basic authentication
Hi there, I have been trying to get the PowersHell connections to work to Office 365 and current results are: (AD) Connect-AzureAD: Working (Exchange) Connect-EXOPSSession: Not working (Basic auth...
Tony Richards
May 16, 2019Brass Contributor
VasilMichev"They are basically fetching the token via the ADAL controls, but still passing it using Basic authentication." Is this based on your own investigation or do you have a document that spells this out?
VasilMichev
May 16, 2019MVP
No need for a document, simply look at the way credentials are passed and the connection string.
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/PowerShell-LiveId?BasicAuthToOAuthConversion=true -Credential $Ctoken -Authentication Basic -AllowRedirection