Microsoft Graph 订阅 - MSA 请求不支持 Exchange Online 资源
Microsoft Graph Subscriptions - Exchange Online resources are not supported for MSA requests
我想我遇到了和 and the question is answered and there is this comment
一样的问题
请求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 it should work, if this is what I really must do I think it's a hassle not being able to use all the microsoftgraph
without using an azure service. (I can live without getting the profile photo This operation in version 1.0 supports only a user's work or school mailboxes and not personal mailboxes.
).
我没有 office365 帐户,所以我不知道如果使用我的应用程序的用户使用 office 365 帐户登录这是否会成为问题.. 因为如果它与 home/commercial 帐户 我可以验证该帐户是来自 MSA 还是 home/commercial 作为解决方法,我可以这样做 https://github.com/microsoftgraph/msgraph-sdk-android/issues/26 如果我知道这是一个 MSA 帐户,我可以要求用户使用另一个帐户才能使用该应用程序...
所以问题是:为了使其与 MSA(真实)帐户一起使用,我必须使用 Azure Active Directory B2C
吗?
编辑:现在可以在图 "beta" 版本上为 "me/messages" 和 "me/contacts" 创建 MSA(真实账户)订阅。
我们还支持 MSA/live 订阅 OneDrive 资源,例如 "me/drive/root"。
我想我遇到了和
请求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 it should work, if this is what I really must do I think it's a hassle not being able to use all the microsoftgraph
without using an azure service. (I can live without getting the profile photo This operation in version 1.0 supports only a user's work or school mailboxes and not personal mailboxes.
).
我没有 office365 帐户,所以我不知道如果使用我的应用程序的用户使用 office 365 帐户登录这是否会成为问题.. 因为如果它与 home/commercial 帐户 我可以验证该帐户是来自 MSA 还是 home/commercial 作为解决方法,我可以这样做 https://github.com/microsoftgraph/msgraph-sdk-android/issues/26 如果我知道这是一个 MSA 帐户,我可以要求用户使用另一个帐户才能使用该应用程序...
所以问题是:为了使其与 MSA(真实)帐户一起使用,我必须使用 Azure Active Directory B2C
吗?
编辑:现在可以在图 "beta" 版本上为 "me/messages" 和 "me/contacts" 创建 MSA(真实账户)订阅。
我们还支持 MSA/live 订阅 OneDrive 资源,例如 "me/drive/root"。