2016-10-26 09:25
浏览 49

使用PHP从MS Dynamics CRM Web API获取联系人

I'm using jamesmcq's library (https://github.com/jamesmcq/oidc-aad-php-library) to connect and fetch contacts data from Microsoft Dynamics CRM Online with PHP. I have successfully logged in via OAuth and got a token, but when I'm trying to access CRM Web API with the access_token, I got the following Exception:

AADSTS65001: The user or administrator has not consented to use the application with ID 'XXXXXX-XXXXXX-XXXX-XXX-XXXXXXX'. Send an interactive authorization request for this user and resource.

I already found this answer: https://stackoverflow.com/a/34885153/1305261, but I have only access to the new Azure Portal, not the Classic, so I have no idea where can I find the settings that the guy talked about. Besides, I found something similar under the Azure Active Directory menu, and I granted access for all permissions, but the Exception is still there.

Can anyone help me how can I fix this error?

UPDATED: Here's my setup for the app's privileges: enter image description here

图片转代码服务由CSDN问答提供 功能建议

我正在使用jamesmcq的库( https://github.com/jamesmcq/oidc-aad-php-library )使用PHP连接和获取Microsoft Dynamics CRM Online中的联系人数据。 我已经通过OAuth成功登录并获得了令牌,但是当我尝试使用access_token访问CRM Web API时,我遇到以下异常:

  AADSTS65001: 用户或管理员未同意使用ID为“XXXXXX-XXXXXX-XXXX-XXX-XXXXXXX”的应用程序。 发送此用户和资源的交互式授权请求。

我已经找到了这个答案:https://stackoverflow.com/a/34885153/1305261 ,但我只能访问新的Azure门户,而不是Classic,所以我不知道在哪里可以找到 男人谈到了。 此外,我在Azure Active Directory菜单下找到了类似的内容,并且我授予了所有权限的访问权限,但Exception仍然存在。


更新: 这是我对应用程序权限的设置:

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题