duanletao9487 2016-10-26 09:25
浏览 50
已采纳

使用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

  • 写回答

1条回答 默认 最新

  • douping4436 2016-10-26 14:25
    关注

    In the new Azure Portal you can access that screen following the next steps:

    1. Azure Active Directory
    2. App registrations
    3. Select your application
    4. Required permissions

    enter image description here

    From there, you can add a new permission:

    enter image description here

    UPDATE:

    enter image description here

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题