Azure AD OAuth2无权访问用户信息

时间:2015-01-29 09:39:15

标签: azure oauth-2.0 azure-active-directory

尝试从Azure Active Directory获取令牌时出现此错误。我有代码,一切看起来都很棒,但现在我得到了这个?

我试过给应用程序提供各种不同的权限吗?

Access Denied  
{
   "error":"invalid_grant",
   "error_description":"AADSTS65001: No permission to access user information is configured for '{applicationId}' application, or it is expired or revoked.\r\nTrace ID: 0493ca6a-442d-4f68-9bb7-bc754896aac1\r\nCorrelation ID: e7a4981a-febb-49a0-b016-57f1d863a2bb\r\nTimestamp: 2015-01-29 09:36:07Z",
   "error_codes":[65001],
   "timestamp":"2015-01-29 09:36:07Z",
   "trace_id":"0493ca6a-442d-4f68-9bb7-bc754896aac1",
   "correlation_id":"e7a4981a-febb-49a0-b016-57f1d863a2bb",
   "submit_url":null,
   "context":null
}

1 个答案:

答案 0 :(得分:1)

似乎这不起作用,我们选择使用OpenIdConnect而不是很好。