Versions Compared

Key

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

...

So we need to map the CASFilter to provide for authentication.

Add this to the web.xml

Code Block
xml
xml
titleDeclaring the CASFilter

  <filter>
    <filter-name>CASFilter</filter-name>
	<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
	<init-param>
        <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
		<param-value>https://secure.its.yale.edu/cas/login</param-value>
	</init-param>
	<init-param>
	    <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
		<param-value>https://secure.its.yale.edu/cas/serviceValidate</param-value>
	</init-param>
	<init-param>
	    <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
		<param-value>hkg2.cis.yale.edu:8080</param-value>
	</init-param>
  </filter>

  <filter-mapping>
      <filter-name>CAS Filter</filter-name>
	  <url-pattern>/*</url-pattern>
  </filter-mapping>

CASifying multiple Tomcats

...