错误:AADSTS90015:请求的查询字符串太长(在执行 ADFS 时)

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

我正在进行 ADFS 身份验证,当我单击 Microsoft Teams 中的登录按钮时,我将被重定向到我的 URL,页面重定向后出现以下错误:

AADSTS90015:请求的查询字符串太长。

我尝试过以下解决方案:

HTTP 错误 414。请求 URL 太长。 ASP.NET查询字符串太长

但是我无法解决问题,请帮我解决这个问题。

azure-active-directory adfs adfs2.0 adfs3.0
1个回答
0
投票

您链接的两个问题的解决方案并不完整。尝试将以下内容添加到您的 web.config 中:

<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxQueryString="32768"/>
    </requestFiltering>
  </security>
</system.webServer>

参见:

http://www.iis.net/ConfigReference/system.webServer/security/requestFiltering/requestLimits

您可能还需要在 web.config 中添加以下内容:

<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>

当然,这些数字只是示例,您不必在这些设置中使用这些确切的值。

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