<commit_before>[main]

#Session
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager

# Session Cache
sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO
sessionManager.sessionDAO = $sessionDAO
securityManager.sessionManager = $sessionManager

authenticator=net.wendal.nutzbook.shiro.ModularRealmAuthenticator2
securityManager.authenticator=$authenticator

# use R.UU32()
sessionIdGenerator = net.wendal.nutzbook.shiro.NutzbookSessionIdGenerator
securityManager.sessionManager.sessionDAO.sessionIdGenerator = $sessionIdGenerator

cacheManager = org.apache.shiro.cache.ehcache.EhCacheManager
cacheManager.cacheManagerConfigFile=classpath:ehcache.xml
securityManager.cacheManager = $cacheManager

sha256Matcher = org.apache.shiro.authc.credential.Sha256CredentialsMatcher
nutzdao_realm = net.wendal.nutzbook.shiro.realm.NutDaoRealm
nutzdao_realm.credentialsMatcher = $sha256Matcher
nutzdao_realm.cacheManager = $cacheManager

# cookie
sessionIdCookie=org.apache.shiro.web.servlet.SimpleCookie
sessionIdCookie.name=sid
sessionIdCookie.maxAge=946080000
sessionIdCookie.httpOnly=true  
sessionManager.sessionIdCookie=$sessionIdCookie  
sessionManager.sessionIdCookieEnabled=true
sessionManager.globalSessionTimeout=946080000

authc = org.nutz.integration.shiro.CaptchaFormAuthenticationFilter
authc.loginUrl  = /user/login
logout.redirectUrl= /user/login

#Cross Screen
cs_authc = net.wendal.nutzbook.crossscreen.CrossScreenAuthentication
# qrcode timeout 2min
cs_authc.timeout = 120
cs_realm = net.wendal.nutzbook.shiro.realm.CrossScreenRealm
cs_realm.cacheManager = $cacheManager

#oauth
oauth_realm = net.wendal.nutzbook.shiro.realm.OAuthRealm
oauth_realm.cacheManager = $cacheManager

[urls]
/rs/*        = anon, noSessionCreation
/user/logout = logout
/user/error  = anon
/user/profile/active/mail = anon
/user/**     = authc
/cs/pass     = cs_authc<commit_msg>change: shiro默认的几个拦截器的loginUrl统统改掉<commit_after>[main]

#Session
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager

# Session Cache
sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO
sessionManager.sessionDAO = $sessionDAO
securityManager.sessionManager = $sessionManager

authenticator=net.wendal.nutzbook.shiro.ModularRealmAuthenticator2
securityManager.authenticator=$authenticator

# use R.UU32()
sessionIdGenerator = net.wendal.nutzbook.shiro.NutzbookSessionIdGenerator
securityManager.sessionManager.sessionDAO.sessionIdGenerator = $sessionIdGenerator

cacheManager = org.apache.shiro.cache.ehcache.EhCacheManager
cacheManager.cacheManagerConfigFile=classpath:ehcache.xml
securityManager.cacheManager = $cacheManager

sha256Matcher = org.apache.shiro.authc.credential.Sha256CredentialsMatcher
nutzdao_realm = net.wendal.nutzbook.shiro.realm.NutDaoRealm
nutzdao_realm.credentialsMatcher = $sha256Matcher
nutzdao_realm.cacheManager = $cacheManager

# cookie
sessionIdCookie=org.apache.shiro.web.servlet.SimpleCookie
sessionIdCookie.name=sid
sessionIdCookie.maxAge=946080000
sessionIdCookie.httpOnly=true  
sessionManager.sessionIdCookie=$sessionIdCookie  
sessionManager.sessionIdCookieEnabled=true
sessionManager.globalSessionTimeout=946080000

authc = org.nutz.integration.shiro.CaptchaFormAuthenticationFilter
authc.loginUrl  = /user/login
perms.loginUrl  = /user/login
roles.loginUrl  = /user/login
user.loginUrl   = /user/login
rest.loginUrl   = /user/login
logout.redirectUrl= /user/login

#Cross Screen
cs_authc = net.wendal.nutzbook.crossscreen.CrossScreenAuthentication
# qrcode timeout 2min
cs_authc.timeout = 120
cs_realm = net.wendal.nutzbook.shiro.realm.CrossScreenRealm
cs_realm.cacheManager = $cacheManager

#oauth
oauth_realm = net.wendal.nutzbook.shiro.realm.OAuthRealm
oauth_realm.cacheManager = $cacheManager

[urls]
/rs/*        = anon, noSessionCreation
/user/logout = logout
/user/error  = anon
/user/profile/active/mail = anon
/user/**     = authc
/cs/pass     = cs_authc
{'fraction_non_alphanumeric': 0.08638936746246616, 'fraction_numerical': 0.016736401673640166, 'mean_word_length': 5.492012779552716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5124205', 'n_tokens_mistral': 1475, 'n_tokens_neox': 1394, 'n_words': 166}