A bit more in detail... if it helps I have a shiro web application that has its own login page (http://app-server:8080/myapp/login.jsp). I would like to enter the credentials on my login page, under the hood it should authenticate against CAS and redirect me to my secured page. This thread has pretty much described most of the shiro.ini config that I need, except that it is missing a few things, heres my config, I used the github project mentioned above and highlighted the line I added.
----------------- START CONFIG ------------------ [main] casFilter = org.apache.shiro.cas.CasFilter casFilter.failureUrl = /error.jsp casRealm = org.apache.shiro.cas.CasRealm casRealm.defaultRoles = ROLE_USER casRealm.casServerUrlPrefix = http://cas-server/ (no port or /cas, login is available at http://cas-server/login and it works fine) casRealm.casService = http://app-server:8080/myapp #casRealm.validationProtocol = SAML casSubjectFactory = org.apache.shiro.cas.CasSubjectFactory securityManager.subjectFactory = $casSubjectFactory user.loginUrl = http://cas-server/login?service=http://app-server:8080/myapp/home.jsp shiro.loginUrl = /login.jsp (i added this) authc.successUrl = /home.jsp (i added this) [urls] /myapp = casFilter /login.jsp = authc /logout = logout ----------------- END CONFIG ------------------ Also what would my login form look like? An examples? -- View this message in context: http://shiro-user.582556.n2.nabble.com/Cant-Integrate-Shiro-with-CAS-tp7579234p7579574.html Sent from the Shiro User mailing list archive at Nabble.com.
