Forum Discussion
DevGuy77
Jul 24, 2019Copper Contributor
Connecting to SharePoint with MFA enabled
Hi, I'm trying to create a simple windows 10 desktop app (WPF) that will connect to SharePoint but I get the following error: Microsoft.SharePoint.Client.IdcrlException: The account password...
- Jul 24, 2019I'm not sure anything changed in the meanwhile but last time I needed to handle MFA scenario I made use of PnP authenticationmanager's GetWebLoginClientContext method to authenticate:
https://github.com/SharePoint/PnP-Sites-Core/blob/master/Core/OfficeDevPnP.Core/AuthenticationManager.cs
paulpascha
Jul 24, 2019Bronze Contributor
I'm not sure anything changed in the meanwhile but last time I needed to handle MFA scenario I made use of PnP authenticationmanager's GetWebLoginClientContext method to authenticate:
https://github.com/SharePoint/PnP-Sites-Core/blob/master/Core/OfficeDevPnP.Core/AuthenticationManager.cs
https://github.com/SharePoint/PnP-Sites-Core/blob/master/Core/OfficeDevPnP.Core/AuthenticationManager.cs