图 API:AADSTS50011:请求中指定的回复 url 与为应用程序配置的回复 url 不匹配

Graph API: AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application

我正在使用图表 API 访问 oneDrive,以便 copy/download/.... 文件。 如果我使用我的个人帐户,一切正常,但一旦我尝试使用我的公司企业帐户,我就会得到

AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: '2d674cb8-8a33-4bfa-860a-33490fb73ca9'.

身份验证 url 类似于:

tps://login.microsoftonline.com//oauth2/v2.0/authorize?response_type=code&client_id=&redirect_uri=https://server/.../deeplink&scope=Files.ReadWrite.All

有什么建议吗?

当授权请求中的 redirect_uri 与 Azure 门户中配置的重定向 url 不匹配时,通常会出现此错误。

您请求中的 redirect_uri 是 https://server/.../deeplink,因此请检查 Azure 门户中的重定向 url。

我想知道是不是我们公司微软账户的某些安全设置导致了这个问题?我还在清单中将这些参数设置为 true"oauth2AllowIdTokenImplicitFlow": true, "oauth2AllowImplicitFlow": true 我想不出别的了。

Tony,根据您的要求,我在此处添加了 url 的图片。 https://i.stack.imgur.com/YEHBm.png