Hi,
I am confused about the ordering of filters and was hoping for some
assistance. I saw in the CAS documentation it specifies the order to be....
1. AuthenticationFilter
2. TicketValidationFilter (whichever one is chosen)
3. HttpServletRequestWrapperFilter
4. AssertionThreadLocalFilter
But, in an example to casify an application that contains a custom
filter, the ordering looks like this....
<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/CasProxyServlet</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Authentication Filter</filter-name> <!--
org.jasig.cas.client.authentication.AuthenticationFilter -->
<url-pattern>/Login</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Validation Filter</filter-name> <!--
org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter -->
<url-pattern>/Login</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>WebAdvisor Authentication Filter</filter-name> <!-- This
filter must come AFTER the Jasig CAS Client filters above -->
<url-pattern>/*</url-pattern>
</filter-mapping>
Is this right? The reason why I ask is because I am receiving an error
that looks to be an ordering issue. The principal is returning null but
I viewed the cas logs and I verified that the username is retrieved and
authenticated.
Thanks so much.
Laura
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user