Spring OpenID Google不在Apache代理服务器下工作

Spring OpenID Google不在Apache代理服务器下工作,spring,spring-security,openid,Spring,Spring Security,Openid,嗨,我正在ApacheModProxy下使用openid实现spring安全性 其中,我代理tomcat url。openid在没有代理的情况下工作正常,但使用代理spring OpenIDAuthenticationFilter发送buildReturnToUrl发送tomcat url(localhost:8081),而不是代理url。即使我覆盖了此选项,另一个问题也会发生在ConsumerManager验证方法verifyReturnTo上(字符串receivingUrl,AuthSu

嗨,我正在ApacheModProxy下使用openid实现spring安全性

其中,我代理tomcat url。openid在没有代理的情况下工作正常,但使用代理spring OpenIDAuthenticationFilter发送buildReturnToUrl发送tomcat url(localhost:8081),而不是代理url。即使我覆盖了此选项,另一个问题也会发生在ConsumerManager验证方法
verifyReturnTo上(字符串receivingUrl,AuthSuccess响应)

有没有办法实现这一点,而不是重写整个SpringOpenID类filter和consumerManager

如果有人已经解决了这个问题,请告诉我spring是否提供了支持这种情况的东西OOB,因为这是一个常见的用例

Xml配置

<openid-login default-target-url="/welcome"
            authentication-failure-handler-ref="openIdAuthFailureHandler"
            authentication-success-handler-ref="authenticationSuccessHandler" 
            >
            <attribute-exchange>
                <openid-attribute name="email"
                    type="http://axschema.org/contact/email" required="true" count="1" />
                <openid-attribute name="axContactEmail"
                    type="http://axschema.org/contact/email" required="true" />
                <openid-attribute name="oiContactEmail"
                    type="http://schema.openid.net/contact/email" required="true" />
                <openid-attribute name="axNamePersonFullname"
                    type="http://axschema.org/namePerson" required="true" />
                <openid-attribute name="axNamePersonFriendlyName"
                    type="http://axschema.org/namePerson/friendly" required="true" />
                <openid-attribute name="axNamePersonFirstName"
                    type="http://axschema.org/namePerson/first" required="true" />
                <openid-attribute name="axNamePersonLastName"
                    type="http://axschema.org/namePerson/last" required="true" />
            </attribute-exchange>
        </openid-login>

问候

<openid-login default-target-url="/welcome"
            authentication-failure-handler-ref="openIdAuthFailureHandler"
            authentication-success-handler-ref="authenticationSuccessHandler" 
            >
            <attribute-exchange>
                <openid-attribute name="email"
                    type="http://axschema.org/contact/email" required="true" count="1" />
                <openid-attribute name="axContactEmail"
                    type="http://axschema.org/contact/email" required="true" />
                <openid-attribute name="oiContactEmail"
                    type="http://schema.openid.net/contact/email" required="true" />
                <openid-attribute name="axNamePersonFullname"
                    type="http://axschema.org/namePerson" required="true" />
                <openid-attribute name="axNamePersonFriendlyName"
                    type="http://axschema.org/namePerson/friendly" required="true" />
                <openid-attribute name="axNamePersonFirstName"
                    type="http://axschema.org/namePerson/first" required="true" />
                <openid-attribute name="axNamePersonLastName"
                    type="http://axschema.org/namePerson/last" required="true" />
            </attribute-exchange>
        </openid-login>