我想我有同样的问题Microsoft Graph 订阅 - 不允许的方法 https://stackoverflow.com/questions/34439663/microsoft-graph-subscriptions-method-not-allowed问题得到了回答,有这样的评论Microsoft Graph 订阅 - 不允许的方法 https://stackoverflow.com/questions/34439663/microsoft-graph-subscriptions-method-not-allowed#comment57120925_34663855
Request 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
Response
{
"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 活动目录 B2C https://learn.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-faqs它应该有效,如果这是我真正必须做的,我认为无法使用所有的功能会很麻烦microsoftgraph
不使用天蓝色服务。 (即使没有得到,我也能生活头像照片This operation in version 1.0 supports only a user's work or school mailboxes and not personal mailboxes. https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/profilephoto_get).
我没有 Office365 帐户,所以我不知道如果使用我的应用程序的用户使用 Office 365 帐户登录,这是否不会成为问题。因为如果它与家庭/商业帐户一起使用,我可以验证该帐户是来自 MSA 还是家庭/商业帐户作为解决方法我可以这样做https://github.com/microsoftgraph/msgraph-sdk-android/issues/26 https://github.com/microsoftgraph/msgraph-sdk-android/issues/26如果我知道这是一个 MSA 帐户,我可以要求用户使用另一个帐户才能使用该应用程序...
所以问题是:为了使其与 MSA(实时)帐户一起使用,我是否必须使用Azure Active Directory B2C
?