只需使用基于密码的身份验证,就可以轻松地在CSOM中进行身份验证:
context.Credentials = new SharePointOnlineCredentials(username, password);但是,当多因素身份验证(http://technet.microsoft.com/en-us/library/dn249471.aspx)到位时,如何进行身份验证呢?
发布于 2019-11-08 23:50:35
使用应用程序密码代替您的正常密码。
在此处生成应用程序密码:
https://account.activedirectory.windowsazure.com/AppPasswords.aspx
或转到
https://portal.office.com/account/#security
然后单击Additional Security Verification > Create app password。
您可以在以后随时撤销/删除应用程序密码。
https://stackoverflow.com/questions/25969814
复制相似问题