Forum Discussion
DevGuy77
Jul 23, 2019Copper Contributor
Connecting to SharePoint with MFA enabled
I'm trying to create a simple windows 10 desktop app (WPF) that will connect to SharePoint. I have the following code that is taken from an example online, however this account has MFA enabled. ...
Thomas Berman
Aug 15, 2019Iron Contributor
You can't authenticate with a user account if MFA is enabled.
Take a look at App-only authentication. There are two methods available for this: via Azure Active Directory or by registering the app directly with SharePoint.
https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs