2

I want to get an access to Calendar rest API from my Ruby application. I've created azure multi-tenant app, and configured it.

I'm trying to get an access token to resource "https://outlook.office365com/", but I get an error

'AADSTS50001: Resource 'https://outlook.office365.com/' is disabled.'

I can't find any description of this error, and can't understand why it's disabled


Here are my azure app permissions:

enter image description here

4

1 回答 1

0

这对我来说是一个新错误!让我们检查一下 Exchange 主体是否被禁用。为此,您需要使用远程 Powershell 连接到 Azure AD 服务。

这是如何做到的(我假设您在 Windows 机器上安装了 Powershell):

  1. 为 Powershell 安装 Azure AD 模块:https ://msdn.microsoft.com/en-us/library/azure/jj151815.aspx#bkmk_installmodule
  2. 打开“用于 Windows PowerShell 的 Windows Azure Active Directory 模块”。按照链接文章中“连接到 Azure AD”下的步骤操作。
  3. 运行以下命令:Get-MsolServicePrincipal -AppPrincipalId 00000002-0000-0ff1-ce00-000000000000

你应该看到这样的输出:

ExtensionData         : System.Runtime.Serialization.ExtensionDataObject
AccountEnabled        : True
Addresses             : {}
AppPrincipalId        : 00000002-0000-0ff1-ce00-000000000000
DisplayName           : Microsoft.Exchange
ObjectId              : f7d177d5-2071-45a9-b494-9b98cb4d80e3
ServicePrincipalNames : {00000002-0000-0ff1-ce00-000000000000/outlook.office365
                        .com, 00000002-0000-0ff1-ce00-000000000000/mail.office3
                        65.com,
                        00000002-0000-0ff1-ce00-000000000000/outlook.com,
                        00000002-0000-0ff1-ce00-000000000000/*.outlook.com...}
TrustedForDelegation  : True

您可以运行命令并发布结果吗?

于 2015-07-01T02:06:22.937 回答