CAS https検証をキャンセル

2799 ワード

サーバ側:
1.casWEB-INFspring-configurationticketGrantingTicketCookieGeneratorを見つける.xmlは、p:cookieSecure="true"をp:cookieSecure="false"に変更します.
<bean id="ticketGrantingTicketCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"

        p:cookieSecure="false"

        p:cookieMaxAge="-1"

        p:cookieName="CASTGC"

        p:cookiePath="/cas" />

2.casWEB-INFspring-configurationwarnCookieGeneratorを見つけた.xmlは、p:cookieSecure="をp:cookieSecure="false"に変更し、以下のように変更します.
<bean id="warnCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"

        p:cookieSecure="false"

        p:cookieMaxAge="-1"

        p:cookieName="CASPRIVACY"

        p:cookiePath="/cas" />

3.casWEB-INFdeployerConfigContext.を見つけるxmlで、ファイルに「H t t p B a s e d S v e r i c e C r e d e n t i a l s AuthenticationHandler」beanを見つけ、p:requireSecure=「false」を追加し、次のように変更します.
<bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"

                    p:httpClient-ref="httpClient" p:requireSecure="false" />