Apr 10 2019 02:30 AM
Hi Currently We can calling Exchange Online Commandlets With the below code :
WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("https://outlook.office365.com/PowerShell-LiveID"), exchangeSchema,
PowershellCommonUtilities.GetPSCredential(connectInfo.UserName, connectInfo.Password)); connectionInfo.AuthenticationMechanism = AuthenticationMechanism.Basic;
connectionInfo.IdleTimeout = idleTimeout;
connectionInfo.OpenTimeout = connectionTimeout;
exchangerunspacepool = RunspaceFactory.CreateRunspacePool(minRunSpace, maxRunspace, connectionInfo);
We need to move this basic Authentication to Modern Authentication. Please let me know if anyone has achieved it.
Mar 12 2020 12:04 AM
Hi Vibhor,
Just wanted to check if you found any working solution for this.
I.e trying to invoke exchange power shell commands from any service using oauth
Mar 12 2020 12:08 AM
Hello @Us9898 ,
We are using Exchange Online Remote PowerShell Module , to invoke cmdlets using modern authentication.
Mar 12 2020 02:43 AM
Hi @VibhorM ,
thanks for the quick reply, I am trying to execute this via backed-services.
which will not need user interaction.
So i can get the token but after that i cannot connect to the API, via power shell.
Wondering if you got it working .
thank you
Jul 19 2022 11:30 PM
Hello @Us9898 do you find solution to call via backed service ?
Sep 07 2022 06:13 AM
Hello @Us9898
Did you find any solution? We're having the same issue. We are getting the token but cannot connect with API (open run space) using that token.
Please let me know if you got the answer or direction.
Thanks,
Kaiyum
Sep 07 2022 06:14 AM
Oct 10 2022 09:42 AM
Hello,
Basic Authentication is disabled since October 2022. So we're having the same issue. Did you find any solution or sample codes.
Thanks,
Oct 10 2022 09:42 AM
Jul 25 2023 06:06 AM