Hi,
Ok now I have diffrent situation. but it still dont work.
Now as soon as the server start I am directed to
http://192.168.108.195:8080/unauthorized.jsp (instead of
http://192.168.108.195:8080/index.jsp) as it always were. 
Now when I go to http://192.168.108.195:8080/secure/index.jsp I am directed
to CAS but this time it's redirecting me to the same page without a result
ticket in the url ->http://192.168.108.195:8080/unauthorized.jsp 

this is the 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/

                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/

                roles.unauthorizedUrl = /unauthorized.jsp



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

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

Thanks.




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

Reply via email to