在没有任何用户交互屏幕的情况下在Web API中使用Microsoft Graph API

问题描述:

摘要:

  1. 我有一个WinForms应用,组织中的多个用户可以登录.
  2. 从这个WinForm应用程序中,我想调用Web API,该API在内部为精确分配的MeetingManager用户处理一些与日历相关的事件(例如,创建新会议,获取会议响应等)
  3. 在这里,我们打算使用Microsoft Graph API来完成所有工作
  4. 并且由于Web API将在其端点内部进行处理,因此我们在两者之间不寻求任何交互屏幕(既不用于用户登录,也不用于在同意页面上授予权限).所有这一切都应该在后台发生,并且两者之间无需任何用户交互.
  5. 我该如何实现?

注意:我是Microsoft Graph API和Web应用程序域的初学者

Note: I am a beginner to Microsoft Graph API and Web application domain

Graph API模拟:

Graph API Mock up:

您可以通过仅应用身份验证方法来获取此证书.获取仅应用访问令牌,并将其用于身份验证.

You can get this by app-only authentication method. Get an app-only access token and use it for authentication.

我也在努力解决类似的问题,我需要检索计划员任务.对于计划程序任务,不支持仅应用程序范围,但就您而言,我认为它应该可以工作

I am also struggling on a similar type of question and I need to retrieve planner tasks. For planner tasks app-only scope is not supported but In your case I think it should work

阅读这两个链接以获取更多详细信息.

Read both these links for more details.

https://graph.microsoft.io/en-us/docs /authorization/app_only

https://graph.microsoft.io/en-us/docs /authorization/permission_scopes