【问题标题】:Reverse Proxy for Shibboleth not sending request POSTShibboleth 的反向代理不发送请求 POST
【发布时间】:2018-11-22 08:22:33
【问题描述】:

我正在尝试将从 Authenticating shibboleth 发送的 POST 请求发送回我的 Web 服务器,但我只收到一个 GET 请求。当这个 GET 请求被代理到我的 web 服务器的回调时,它只会得到一个我们设置的“hello”。

我想要完成的是通过代理发送帖子并在我的回调路径上接收它并提取属性并保存它们。

这是我目前拥有的架构:

Web -> Shibboleth 服务器 (/secure) -> 向我的 IDP 提供者验证 -> 使用 POST 方法返回 /secure 然后我在这里有一个反向代理将其发送到我的 Web服务器,但只发生 GET 方法。

这些是 apache 日志

[12/Jun/2018:19:40:03 +0000] "GET /secure HTTP/1.1" 302 841(调用登录)

[12/Jun/2018:19:40:38 +0000] "POST /Shibboleth.sso/SAML2/POST HTTP/1.1" 302 238(从 IdP 返回)

[12/Jun/2018:19:40:38 +0000] "GET /secure HTTP/1.1" 200 5

我的反向代理配置:

<Location /secure >
    AuthType shibboleth
    ShibRequireSession On
    ShibRequestSetting applicationId default
    ShibUseHeaders On
    Require valid-user
</Location>

SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyRequests off
ProxyPass /secure https://mywebsite.com/login/callback
ProxyPassReverse /secure https://mywebsite.com/login/callback
ProxyPreserveHost On

任何帮助将不胜感激!

【问题讨论】:

    标签: apache proxy configuration saml shibboleth


    【解决方案1】:

    我能够通过 RewriteRule 发送标头:

    RewriteRule /secure https://website.com/login/callback
    

    但我在网络服务器上使用 Get 回调方法,然后从那里重定向到我想要的位置。

    【讨论】:

      猜你喜欢
      • 2021-07-10
      • 1970-01-01
      • 1970-01-01
      • 2021-05-29
      • 2014-08-04
      • 1970-01-01
      • 2015-09-20
      • 1970-01-01
      • 2017-02-27
      相关资源
      最近更新 更多