Hi,
Could anyone tell me how I can exclude certain files only from CAS? I
currently have CAS in gateway mode.
I think the best way would be to use <url-regexp> in web.xml, but the
<filter-mapping> tag does not allow it. It only allows <url-pattern>.
Basically, I want all files that contain the word "feedback" not to go to CAS.
It is not feasible to put all my files except the "feedback" ones in a separate
folder and go from there...
Currently, I have the following authentication setup (which works for all JSP
pages):
<filter>
<filter-name>CAS Filter</filter-name>
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerLoginUrl</param-name>
<param-value>https://rd-ws-6dc0vh1:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://rd-ws-6dc0vh1:8080</param-value>
</init-param>
<init-param>
<param-name>gateway</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>artifactParameterName</param-name>
<param-value>ticket</param-value>
</init-param>
<init-param>
<param-name>serviceParameterName</param-name>
<param-value>service</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CAS Filter</filter-name>
<url-pattern>/secure/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>CAS Gateway Filter</filter-name>
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerLoginUrl</param-name>
<param-value>https://rd-ws-6dc0vh1:8443/cas/login</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>http://rd-ws-6dc0vh1:8080</param-value>
</init-param>
<init-param>
<param-name>gateway</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>artifactParameterName</param-name>
<param-value>ticket</param-value>
</init-param>
<init-param>
<param-name>serviceParameterName</param-name>
<param-value>service</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CAS Gateway Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
--
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-dev