Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleAdd to global.xml
collapsetrue
    <bean id="shibbolethcustom.SameSiteCookieFilter"
        class="net.shibboleth.utilities.java.support.net.SameSiteCookieHeaderFilter"
        p:defaultValue="None" />

...

Code Block
languagexml
titleExtend web.xml
collapsetrue
    <!-- Automates SameSite handling until Java API catches up. -->
	<!-- Should go ABOVE the CookieBufferingFilter in the current file. -->
    <filter>
        <filter-name>SameSiteCookieFilter</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
        <init-param>
            <param-name>targetBeanName</param-name>
            <param-value>shibbolethvalue>custom.SameSiteCookieFilter</param-value>
        </init-param>
    </filter>

...
	<!-- Again, place ABOVE the mapping for the CookieBufferingFilter. -->
    <filter-mapping>
        <filter-name>SameSiteCookieFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

...