【发布时间】:2018-05-16 16:24:06
【问题描述】:
我已经在 Microsoft 应用程序注册门户上注册了一个应用程序。我在应用程序权限中添加了 Calendar.Read 权限。如何通过在 MS Graph API 中发送访问令牌来获取组织的日历?
https://i.stack.imgur.com/MNsuH.jpg
我注意到亚马逊通过 Calendar.Read 权限获取用户组织的日历事件。 这就是我所做的:
首先,我去这个网站获取租户ID
https://login.microsoftonline.com/common/adminconsent?%20client_id=[MyClientID]%20&state=12378%20&redirect_uri=http://localhost
我在这个 url 中填写了 4 个键:grand_type(value=client_credentials)、client_ID、client_secret、resource(app id uri)。然后,我得到了一个访问令牌。我将访问令牌插入到图形 api 中。我收到错误响应代码“Authentication_MissingOrMalformed”
https://login.microsoftonline.com/[MyTenantID]/oauth2/token
我可以用这个 URL 中的令牌做什么?
感谢您的回答。
【问题讨论】:
-
什么是“组织日历”?没有租户范围的日历。
标签: azure office365 azure-active-directory microsoft-graph-api