Hi,
I have explored App only and App password. But App Password will be deprecated from October 22 onwards. Is there any other approach except App Only.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All,
We have developed web application in ASP.net C# and all the documents are storing in SharePoint Online. As per the requirement, the documents details should be
taken from SharePoint Online and display in the application. We have an account in SharePoint Online enabled with MFA feature. The code has been authentication. But I am getting error.
Code:
ClientContext ctx = new ClientContext(strSiteURL);
SecureString secureString = new SecureString();
strPassword.ToList().ForEach(secureString.AppendChar);
ctx.Credentials = new SharePointOnlineCredentials(strUserID, secureString);
Site site = ctx.Site;
ctx.Load(site);
ctx.ExecuteQuery();
Error:
The sign-in name or password does not match one in the Microsoft account system.
I want to authenticate the SharePoint Online via MFA enabled user credentials without the OTP prompt or call.
How can I make it possible?
Thanks & Regards
Suresh Sankaran
Hi,
I have explored App only and App password. But App Password will be deprecated from October 22 onwards. Is there any other approach except App Only.
Hi @Suresh S ,
With MFA enabled, the method using class SharePointOnlineCredentials with username and password for authentication would not work.
You have only two options:
2.Use app-only for authentication: https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs
If an Answer is helpful, please click "Accept Answer" and upvote it. Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.