如何通过Kerberos和CSOM创建凭证 [英] How to create credential by Kerberos and CSOM
本文介绍了如何通过Kerberos和CSOM创建凭证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试通过c#和CSOM(v16)在线连接SharePoint。 它正致力于通过用户名和密码创建凭证。
context 。 凭证 = new SharePointOnlineCredentials ( 用户名 , passWord )
是否可以通过Kerberos在线连接SharePoint。怎么办?
解决方案
没有。如果您想使用用户名或密码以外的其他内容进行连接,则需要使用用户和/或应用程序令牌。
https://docs.microsoft.com/en-us /共享点的/ dev / SP-插件/上下文令牌OAuth的流动换SharePoint的插件
I try to connect SharePoint online by c# and CSOM (v16). It is working on creating credential by username and password.
context.Credentials = new SharePointOnlineCredentials(username, passWord)
Is it possible to connect SharePoint online by Kerberos. How to do?
解决方案
No. If you want to connect with something other than a username or password, you would need to use User and/or App Tokens.
https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/context-token-oauth-flow-for-sharepoint-add-ins
这篇关于如何通过Kerberos和CSOM创建凭证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文