shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skybird <>
Subject Re: authcBasic with shiro-cas
Date Thu, 06 Mar 2014 02:15:04 GMT
Thanks for you reply... I tried your suggestion but I am still having some
issues with basic auth. The basic auth prompt does shows up whenever I try
to access anything under "/api/**", but it never succeeds, it keeps on
prompting me. The only other difference in my set up is that I am using
CASFilter/Realm setup which works absolutely fine when I access anything
under "/web/**".

Here my full shiro.ini

casFilter = org.apache.shiro.cas.CasFilter
casFilter.failureUrl = /error.jsp
casFilter.successUrl = /home.jsp

casRealm = org.apache.shiro.cas.CasRealm
casRealm.defaultRoles = ROLE_USER
casRealm.casServerUrlPrefix =
casRealm.casService =
casSubjectFactory = org.apache.shiro.cas.CasSubjectFactory
securityManager.subjectFactory = $casSubjectFactory

sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO

securityManager.sessionManager = $sessionManager
securityManager.sessionManager.sessionDAO = $sessionDAO

roles.loginUrl =

/shiro-cas = casFilter
/login.jsp = anon
/web/** = roles[ROLE_USER]
/api/** = authcBasic
/logout = logout

View this message in context:
Sent from the Shiro User mailing list archive at

View raw message