Onedrive 身份验证 [英] Onedrive Authentication

查看:210
本文介绍了Onedrive 身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和我的团队正在开发一个 API 来保护文件,在该 API 中我们需要 Onedrive(云存储).我们使用 MicrosoftGraph 身份验证集成了 Onedrive,如下面的链接所示.在此处输入链接描述

Me and my team are developing an API to secure files,in that API we need Onedrive(cloud storage).we integrated Onedrive using MicrosoftGraph authentication as shown in the below link. enter link description here

问题是当我尝试验证并登录个人帐户时,它可以工作,但对于组织帐户,我遇到了如下所示的问题

The thing is when i try to authenticate and sign in to pesonal account it works but for organisation account i'm facing the issue as shown in the below

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;])****

请在技术上帮助我.

推荐答案

您的令牌与用户上下文不匹配.这是因为虽然您登录的是您的组织帐户,但您使用的令牌仍然由您的个人帐户颁发.

Your token does not match the user context. This is because although you are logged in to your organization account, the token you use is still issued by your personal account.

访问令牌是唯一的.如果您需要使用组织帐户登录,则必须将组织帐户设置为令牌颁发者.您需要使用您的组织帐户登录以获取新的授权码,然后使用授权码再次获取令牌.

The access token is unique. If you need to log in with an organization account, then you must set the organization account as the token issuer. You need to log in with your organization account to obtain a new authorization code, and then use the authorization code to obtain the token again.

这篇关于Onedrive 身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆