Skip to content

Instantly share code, notes, and snippets.

@dominicfarr
Created March 20, 2014 10:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dominicfarr/9661188 to your computer and use it in GitHub Desktop.
Save dominicfarr/9661188 to your computer and use it in GitHub Desktop.
Shiro ini wiht multiple authentication filters
[main]
authc.loginUrl = /web/login.html
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO
securityManager.sessionManager = $sessionManager
securityManager.sessionManager.sessionDAO = $sessionDAO
[users]
dom = password, user
[roles]
user = standard
[urls]
/web/login.html = authc
/web/** = authc
/api/** = authcBasic
/jersey/message = anon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment