【发布时间】:2020-10-28 14:08:58
【问题描述】:
我和我的团队正在开发一个 API 来保护文件,在该 API 中我们需要 Onedrive(云存储)。我们使用 MicrosoftGraph 身份验证集成了 Onedrive,如下面的链接所示。 enter link description here
问题是当我尝试进行身份验证并登录到个人帐户时,它可以工作,但是对于组织帐户,我遇到了如下所示的问题
We have recieved a bad request.****(AADSTS165000: Invalid Request: The request tokens do not match the user context. Do not copy the user context values (cookies; form fields; headers) between different requests or user sessions; always maintain the ALL of the supplied values across a complete single user flow. Failure Reasons:[Token values do not match;])****
请在技术上帮助我。
【问题讨论】:
-
您是否使用组织帐户请求了新的访问令牌?令牌是唯一的。您需要使用组织账号登录获取新的授权码,并使用授权码再次获取token。
-
如果您有任何问题,我会尽快回复您。
标签: microsoft-graph-api onedrive