Azure AD OAuth2 无权限访问用户信息

Azure AD OAuth2 No permission to access user information

我在尝试从 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
}

这似乎行不通,我们选择使用 OpenIdConnect,效果很好。