答案 0 :(得分:1)
如果您的机器人要同时连接SharePoint和Office 365,则最好将Azure Active Directory v2用作OAuth2提供程序,然后再利用Microsoft Graph API(和specifically for SharePoint)。这样,您只需要一个连接,此路由就会有更多的帮助/支持。
您可以follow this tutorial进行身份验证过程。
还有一个用于auth和msgraph的示例bot:C# / JS
选择Graph路线的另一个好理由是因为Discovery Service API will be deprecated in November 2019(关于SharepointOnline连接的“发现URL”参数)。