Versions Compared

Key

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

...

We haven't added much, if any, security yet, because anyone who can CAS authenticate can now access the Manager. We need to add an authorization layer. For this we'll use the very simple Filter that comes with the Java CAS client to declare NetIDs authorized to access the Manager.

Add this filter declaration:

Code Block
xml
xml
titleDeclaring the Simple CAS Authorization filter

  <filter>
    <filter-name>Authz Filter</filter-name>
	<filter-class>edu.yale.its.tp.cas.client.filter.SimpleCASAuthorizationFilter</filter-class>
	<init-param>
        <param-name>edu.yale.its.tp.cas.client.filter.authorizedUsers</param-name>
		<param-value>awp9</param-value>
	</init-param>
  </filter>

And add this filter mapping:

Code Block
xml
xml
titleMapping the simple CAS Authorization filter

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

CASifying multiple Tomcats

...