Azure App services错误:在请求中指定的回复URL与为应用程序配置的回复URL不匹配

问题描述 投票:1回答:2

运行运行部署到Azure App服务的应用程序时收到此错误。请求中指定的回复URL与为该应用程序配置的回复URL不匹配。快把我逼疯了。我不知道回复网址应该是什么。

azure web azure-active-directory azure-web-sites
2个回答
0
投票

当真实的redirect_uri与Azure门户中的回复URL不匹配时,通常会发生此错误。您可以跟踪身份验证请求网址以找到真实的redirect_uri。请求网址类似于[]

https://login.microsoftonline.com/{tenant}/oauth2/authorize? client_id=6731de76-14a6-49ae-97bc-6eba6914391e &response_type=code &redirect_uri=http%3A%2F%2Flocalhost%3A12345 &response_mode=query &resource=https%3A%2F%2Fservice.contoso.com%2F &state=12345

您将在登录页面中找到请求网址。

enter image description here

只需在请求URL中获取redirect_uri

,请确保它与您在azure门户中配置的相同。

0
投票

我也收到此错误,这使我发疯,因为它在Microsoft Edge上正常运行,但在Chrome,IE,Safari等上无法运行。

© www.soinside.com 2019 - 2024. All rights reserved.