[main] # Objects and their properties are defined here, # Such as the securityManager, Realms and anything # else needed to build the SecurityManager # credentialsMatcher sha256Matcher = org.apache.shiro.authc.credential.Sha256CredentialsMatcher iniRealm.credentialsMatcher = $sha256Matcher # Cache Manager builtInCacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager # Security Manager securityManager.cacheManager = $builtInCacheManager sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager securityManager.sessionManager = $sessionManager securityManager.sessionMode=native # User session timeout in milliseconds securityManager.sessionManager.globalSessionTimeout = 1800000 securityManager.sessionManager.sessionIdUrlRewritingEnabled = false securityManager.sessionManager.sessionIdCookie.secure = true securityManager.rememberMeManager.cookie.secure = true securityManager.rememberMeManager.cookie.httpOnly = true # Notice how we didn't define the class for the FormAuthenticationFilter ('authc') - it is instantiated and available already: authc.loginUrl = /#!/login [users] # The 'users' section is for simple deployments # when you only need a small number of statically-defined set of User accounts. # username = password aadmin=54694c459527b1daf23eb6fcdaa6dc6f76744fbcf1aa9a7b2f7a623d572e4a23 techadmin=eeca5c76b1a42b7890e0ccab757d77810d6396c2dd56adedc6bd0471245ba501 [roles] # The 'roles' section is for simple deployments # when you only need a small number of statically-defined # roles. [urls] # make sure the end-user is authenticated. If not, redirect to the 'authc.loginUrl' above, # and after successful authentication, redirect them back to the original account page they # were trying to view: /v1/api/login = anon /v1/api/logout = logout /v1/api/securemode = anon /** = authc