【发布时间】:2020-08-13 21:29:16
【问题描述】:
我想我和Microsoft Graph Subscriptions - Method not Allowed有同样的问题,问题得到了回答,还有这条评论Microsoft Graph Subscriptions - Method not Allowed
请求https://graph.microsoft.com/v1.0/subscriptions
{
"changeType": "created,updated,deleted",
"notificationUrl":"https://c5e719ba.ngrok.io/api/ms/watch",
"resource": "me/events",
"expirationDateTime":"2016-12-07T02:23:45.9356913Z",
}
响应头
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: application/json
Server: Microsoft-IIS/8.5
request-id: 9bd7a103-5ec0-4ed5-b20d-f8fb4cc75b88
client-request-id: 9bd7a103-5ec0-4ed5-b20d-f8fb4cc75b88
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"North Europe","Slice":"SliceA","ScaleUnit":"000","Host":"AGSFE_IN_4","ADSiteName":"DUB"}}
Duration: 261.5354
X-Powered-By: ASP.NET
Date: Tue, 06 Dec 2016 23:11:45 GMT
回应
{
"error": {
"code": "",
"message": "Exchange Online resources are not supported for MSA requests.",
"innerError": {
"request-id": "9bd7a103-5ec0-4ed5-b20d-f8fb4cc75b88",
"date": "2016-12-06T23:11:46"
}
}
}
但我不确定我应该怎么做才能使它工作,我没有使用 azure,但似乎如果我使用 Azure Active Directory B2C 它应该可以工作,如果这是我真的必须做的,我认为它是不使用 azure 服务就无法使用所有 microsoftgraph 很麻烦。 (不用profile photo This operation in version 1.0 supports only a user's work or school mailboxes and not personal mailboxes.我也能活下去)。
我没有 office365 帐户,所以我不知道如果使用我的应用程序的用户使用 office 365 帐户登录会不会有问题。因为如果它适用于家庭/商业帐户 我可以验证该帐户是来自 MSA 还是家庭/商业帐户,作为一种解决方法...
所以问题是:为了使其与 MSA(实时)帐户一起使用,我是否必须使用 Azure Active Directory B2C?
【问题讨论】: