こんにちは、Apache mod プロキシの下で openid を使用して春のセキュリティを実装しています
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/
ここで、tomcat url をプロキシします。openid はプロキシなしで正常に機能していましたが、プロキシ スプリング OpenIDAuthenticationFilter を使用すると、 buildReturnToUrlはプロキシ 1 の代わりに tomcat url (localhost:8081) を送信します
verifyReturnTo(String receivingUrl, AuthSuccess response)
。
春の openid クラス filter および consumerManager 全体を書き直す代わりに、これを実装する方法はありますか。
これは一般的なユースケースであるため、誰かがこれを解決した場合も知らせてください。
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>
よろしく