Folks,
CAS Client 3.6.4
Filter is starting in the logs, but I only want CAS to be in play for 1
specific WebApp installed on this Tomcat 9 instance.
If I change the url-patterns in the web.xml file to "/*" everything
works, but if I try to scope CAS down to the specific App the filter's
appear to never be "invoked". I have a simple .jsp file in
/ldapconn/casverify.jsp for confirming CAS. If I in a freshly started
browser go to
/ldapconn/casverify.jsp I do not get redirected to CAS for
authentication and get errors obviously in my JSP.
Even if I go to CAS directly and login and then go to
/ldapconn/casverify.jsp I get the same error.
If I change the url-patterns to just "/*" it all works as expected.
Here is my web.xml
<!-- CAS Validation Filter -->
<filter>
<filter-name>CAS Validation Filter</filter-name>
<filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>https://ssoservice.mydomain.net/cas</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://ldapconn.mydomain.net:8080</param-value>
</init-param>
</filter>
<!-- Cas Filter/Wrapper -->
<filter>
<filter-name>CAS Authentication Filter</filter-name>
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>https://ssoservice.mydomain.net/cas</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://ldapconn.mydomain.net:8080</param-value>
</init-param>
</filter>
<!-- CAS Wrapper -->
<filter>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CAS Authentication Filter</filter-name>
<url-pattern>/ldapconn/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/ldapconn/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<url-pattern>/ldapconn/*</url-pattern>
</filter-mapping>
--
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/c9057747-931f-4578-9459-e049e5c80ff2%40caveo.ca.