0

有人可以解释为什么一种情况按预期工作,而另一种情况却没有吗?

身份验证后从 IDP 重定向时出现错误。

Exception: No Saml2 Response found in the http request.
Controller: Saml2
Action: Acs

   at Sustainsys.Saml2.WebSso.AcsCommand.Run(HttpRequestData request, IOptions options)
   at Sustainsys.Saml2.Mvc.Saml2Controller.Acs()

但我确实在 http-post 的重定向 url 中看到了一个 SAML 令牌。

2019-03-12 20:27:34 xxx.xxx.xxx.130 POST /sampleapp/Saml2/Acs - 9090 - xxx.xxx.xxx.139 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/72.0.3626.121+Safari/537.36 https://xxx.idp.com:8443/nidp/saml2/sso?

SAMLRequest=lZGxTsMwEIb3Sn0Hy3vjxGmb5tRGiuhSqQjUlg5sjmMRi8QOPqfw%2BFgBBGVAYv3P33f%2BdWsUXct7KAffmIN6GRR68ta1BuFjsqGDM2AFagQjOoXgJRzL2z3wKIbeWW%2BlbelP5m9EICrntTWU7LYbquuqTvN0sVokPEvnchlXyyrh9bIWcpFVmcgpOSuHAdjQwAcKcVA7g14YH6I4yWdxOkv4icfAM0j5IyXbUEMb4Ueq8b5HYKy1T9pECtHOBuEj2QjnlYuk7WA1n6fM6LpnYwMW3lBSfv30xhocOuWOyl20VA%2BH%2Fbe0V%2BL5otXrbyW7P92dQ86Oo7CUSIvphJD1uADGEq74n2XNruDp5DO4Pl%2FxDg%3D%3D&RelayState=v2xJuO8SAvQlp-hmfNC5-YUA

500 0 0 359

我有一个类似的重定向到端口 443 并且工作正常,但是从负载均衡器重定向到 9090 失败并出现上述错误。该应用程序位于负载均衡器后面,我正在使用 publicOrigin 配置来获取根的公共 url。

2019-03-12 20:31:11 xxx.xxx.xxx.130 POST /sampleapp/Saml2/Acs - 443 - 192.168.127.139 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/ 537.36+(KHTML,+like+Gecko)+Chrome/72.0.3626.121+Safari/537.36 https://xxx.idp.com:8443/nidp/saml2/sso?SAMLRequest=nZHBTsMwDIbvk%2FYOUe5r0q5jXbRVqthl0hBoGztwS1NDI9qkxOng8QkdE%2BzCgavt77N%2FeYmybZJOFL2vzQ7eekBPPtrGoDh3VrR3RliJGoWRLaDwSuyLu61IIi46Z71VtqG%2Fmb8RiQjOa2so2axXVFdlxUGWs4SnGU9BQlYmcl5l2c08nS2eU0XJERwGYEUDHyjEHjYGvTQ% 2BlHi8mPDpJE4OCRfTWMT8iZJ1iKGN9ANVe9%2BhYKyxL9pEgGgnvfSRqqXz4CJlW5Gl6ZQZXXVsSMDCDCXF5dJba7Bvwe3BnbSCx932R9qBfD1peD8rresu3qD9UrOHw%2F0x9Nl%2BEBcKaT4eEbIcFokhjMv%2FZ1uyK8l49F24fmf%2BCQ%3D%3D&RelayState=zcs5p1LobhrHqJdC57eJHbUR 302 0 0 609

任何帮助表示赞赏。

4

0 回答 0