如何使用带有SharePoint Provider Hosted应用程序的Graph API。 [英] How to use Graph API withing SharePoint Provider Hosted app.

查看:76
本文介绍了如何使用带有SharePoint Provider Hosted应用程序的Graph API。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在SharePoint Provider Hosted应用程序中使用Graph API向新访客用户发送邀请。


我收到冲突错误,Graph API和Provider Hosted应用程序使用不同的机制来授权用户。提供托管应用程序使用ACS作为令牌服务器,Microsoft Graph使用较新的Azure AD STS服务器。因此在部署
app解决方案时会出现冲突错误。我认为由于不同的实现机制,身份模型正在变得冲突。


上述问题有人可以提供帮助吗?


解决方案

您好,


请使用ADAL JS在加载项或SharePoint框架中调用Microsoft Graph API。


以下文章供您参考:


使用网络部件中的OAuth调用Microsoft Graph API


https: //docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/call-microsoft-graph-from-your-web-part


调用其他服务的SharePoint应用程序架构


https://blogs.msdn.microsoft.com/kaevans/2015/03/20/an-architecture-for -sharepoint-apps-that-c​​all-other-services /


最好的问候,


Dennis


I want to use Graph API within SharePoint Provider Hosted app to send invitation to new Guest User.

I am getting conflict error and Both Graph API and Provider Hosted app uses different mechanism to authorize user. Provide Hosted app uses ACS as a token server and Microsoft Graph uses the newer Azure AD STS server. Hence getting conflict error while deploying app solution. I believe Identity model is getting conflict due to different implementation mechanism.

Could anyone help on above issue?

解决方案

Hi,

Please use ADAL JS to call Microsoft Graph APIs in add-in or SharePoint framework.

The following articles for your reference:

Call the Microsoft Graph API using OAuth from your web part

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/call-microsoft-graph-from-your-web-part

An Architecture for SharePoint Apps That Call Other Services

https://blogs.msdn.microsoft.com/kaevans/2015/03/20/an-architecture-for-sharepoint-apps-that-call-other-services/

Best Regards,

Dennis


这篇关于如何使用带有SharePoint Provider Hosted应用程序的Graph API。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆