Issues with Interactive Authentication in PowerShell Studio

0
7
Asked By TechGuru22 On

I'm having trouble with the Connect-MgGraph interactive authentication in PowerShell Studio after updating the Microsoft.Graph modules. It seems that Connect-MgGraph now defaults to using Web Account Manager (WAM) on Windows. While the authentication window shows up just fine in Visual Studio Code, it's not appearing in PowerShell Studio. Has anyone else faced this problem, and if so, how did you resolve it? Thanks!

1 Answer

Answered By CodeWhisperer99 On

If you're having trouble with the interactive authentication in PowerShell Studio, you might want to try using the -UseDeviceCode option. It gives you a URL to copy into a browser for authentication instead of the UI window. Alternatively, consider setting up a service principal and authenticating with a certificate instead.

DevEnthusiast7 -

I'm not seeing the device code option in PowerShell Studio. It shows other code, but none related to that.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.