【发布时间】:2019-08-10 00:22:53
【问题描述】:
我在 microsoft azure 中设置了一个新应用程序,并让管理员同意此应用程序的应用程序权限 (files.ReadWriteAll)。我可以通过邮递员获得access_token。我正在尝试使用此端点获取驱动器信息
https://graph.microsoft.com/v1.0/drives/{drive-id}
但我得到一个错误响应:-
{ "error": { "code": "AccessDenied", "message": "Either scp or roles claim need to be present in the token.", "innerError": { "request-id": "905c7701-8b89-4711-9204-b00c4a09a921", "date": "2019-03-28T15:56:29" } } }
我使用此链接获取有关我的访问令牌的信息。 http://jwt.calebb.net/
Files.Readwrite 权限似乎没有在信息中的任何地方列出(不知道为什么)。天蓝色的网站显示已获得同意。
【问题讨论】:
标签: azure oauth microsoft-graph-api credentials