filter - JBOSS AS7 + CAS doesn't redirect after login -


i have jboss as7 cas deployed , test application requires cas login. if go localhost:8443/test redirects me cas login page, after login says login successful, doesn't redirect me aplication. it's stuck @ "login successful". test application web.xml:

<?xml version="1.0" encoding="iso-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee"   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"   version="2.5">      <distributable/>    <display-name>java cas client test application</display-name> <security-constraint>     <web-resource-collection>       <web-resource-name>java cas client test application</web-resource-name>       <url-pattern>/*</url-pattern>     </web-resource-collection>     <user-data-constraint>       <transport-guarantee>confidential</transport-guarantee>      </user-data-constraint>   </security-constraint>    <welcome-file-list>     <welcome-file>hello.html</welcome-file>   </welcome-file-list>      <filter>         <filter-name>cas single sign out filter</filter-name>         <filter-class>org.jasig.cas.client.session.singlesignoutfilter</filter-class>   </filter>    <filter>         <filter-name>cas authentication filter</filter-name>         <filter-class>               org.jasig.cas.client.authentication.saml11authenticationfilter</filter-class>         <init-param>               <param-name>casserverloginurl</param-name>               <param-value>https://127.0.0.1:8443/cas/login</param-value>         </init-param>         <init-param>         <param-name>servername</param-name>         <param-value>https://127.0.0.1:8443</param-value>     </init-param>   </filter>    <filter>     <filter-name>cas redirect filter</filter-name>     <filter-class>     org.jasig.cas.client.authentication.saml11authenticationfilter     </filter-class>     <init-param>       <param-name>redirect</param-name>       <param-value>true</param-value>     </init-param>     <init-param>               <param-name>servername</param-name>               <param-value>https://127.0.0.1:8443</param-value>         </init-param>         <init-param>               <param-name>casserverloginurl</param-name>               <param-value>https://127.0.0.1:8443/cas/login</param-value>         </init-param>   </filter>    <filter>         <filter-name>cas validation filter</filter-name>         <filter-class>org.jasig.cas.client.validation.saml11ticketvalidationfilter</filter-class>         <init-param>               <param-name>casserverurlprefix</param-name>               <param-value>https://127.0.0.1:8443/cas</param-value>         </init-param>         <init-param>               <param-name>servername</param-name>               <param-value>https://127.0.0.1:8443</param-value>         </init-param>         <init-param>               <param-name>redirectaftervalidation</param-name>               <param-value>true</param-value>         </init-param>         <init-param>               <param-name>tolerance</param-name>               <param-value>5000</param-value>         </init-param>   </filter>    <filter>         <filter-name>cas httpservletrequest wrapper filter</filter-name>         <filter-class>org.jasig.cas.client.util.httpservletrequestwrapperfilter</filter-class>   </filter>    <filter>         <filter-name>cas assertion thread local filter</filter-name>         <filter-class>org.jasig.cas.client.util.assertionthreadlocalfilter</filter-class>   </filter>    <filter-mapping>         <filter-name>cas single sign out filter</filter-name>         <url-pattern>/*</url-pattern>   </filter-mapping>    <filter-mapping>         <filter-name>cas authentication filter</filter-name>         <url-pattern>/*</url-pattern>   </filter-mapping>    <filter-mapping>         <filter-name>cas validation filter</filter-name>         <url-pattern>/*</url-pattern>   </filter-mapping>    <filter-mapping>         <filter-name>cas httpservletrequest wrapper filter</filter-name>         <url-pattern>/*</url-pattern>   </filter-mapping>    <filter-mapping>     <filter-name>cas assertion thread local filter</filter-name>     <url-pattern>/*</url-pattern> </filter-mapping> </web-app> 

here helloworld app: https://github.com/valhalluh/hello-world

here cas: https://github.com/valhalluh/cas

change saml11authenticationfilter authenticationfilter , saml11ticketvalidationfilter cas10ticketvalidationfilter


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -