Hi,
You were right. I fixed it. Now I get the ticket again to the same
page(without being forward to the target secured page)

I almost give up;P

Current configuration:

 <filter>
        <filter-name>ShiroFilter</filter-name>
       
<filter-class>org.apache.shiro.web.servlet.IniShiroFilter</filter-class>
        <init-param>
            <param-name>config</param-name>
            <param-value>

                [main]
                casFilter = org.apache.shiro.cas.CasFilter
                casFilter.failureUrl = /unauthorized.jsp


                casRealm = org.apache.shiro.cas.CasRealm
                casRealm.defaultRoles = user
                casRealm.casServerUrlPrefix = http://192.168.2.101/cas
                casRealm.casService = http://192.168.108.195:8080/shiro-cas

                casSubjectFactory = org.apache.shiro.cas.CasSubjectFactory
                securityManager.subjectFactory = $casSubjectFactory


                roles.loginUrl =
http://192.168.2.101:8080/cas/login?service=http://192.168.108.195:8080/shiro-cas

                roles.unauthorizedUrl = /unauthorized.jsp




                [urls]
                /shiro-cas = casFilter
                /secure/** =  roles[user]
                                /admin/** =  roles[admin]
                /** = anon

            </param-value>
        </init-param>
    </filter>





--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Cant-Integrate-Shiro-with-CAS-tp7579234p7579259.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to