Buckets:

download
raw
4.86 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client (web UI/SDK/CLI) posts credentials to the form-login filter; searched for .html/.js/.vue and client code. The caller is outside the repo."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "PretreatmentAuthenticationProcessingFilter",
"file": "framework-security/src/main/java/com/centit/framework/security/PretreatmentAuthenticationProcessingFilter.java",
"lines": "18",
"notes": "Installed by SpringSecurityDaoConfig.getAuthenticationFilter (framework-config/.../SpringSecurityDaoConfig.java:65) and SpringSecurityBaseConfig.configure addFilterAt(..., UsernamePasswordAuthenticationFilter.class) (SpringSecurityBaseConfig.java:111). attemptAuthentication (line 54) checks lockout/captcha, extracts username/password and calls getAuthenticationManager().authenticate at line 96, throwing on failure. Active only when login.dao.enable=true (SecurityDaoCondition); the alternative CAS config is not password-based."
},
{
"role": "Verification manager",
"status": "external",
"symbol": "DaoAuthenticationProvider",
"file": "framework-config/src/main/java/com/centit/framework/config/SpringSecurityDaoConfig.java",
"lines": "110",
"notes": "Enforcer's authenticate call (PretreatmentAuthenticationProcessingFilter.java:96) goes via ProviderManager (SpringSecurityBaseConfig.java:167) to Spring Security's DaoAuthenticationProvider, instantiated and configured here with centitUserDetailsService (line 112) and passwordEncoder (line 123). It loads the user and invokes passwordEncoder.matches."
},
{
"role": "Password store",
"status": "present",
"symbol": "loadUserByUsername",
"file": "framework-core/src/main/java/com/centit/framework/security/UserDetailsServiceImpl.java",
"lines": "29",
"notes": "Reached from DaoAuthenticationProvider via setUserDetailsService(centitUserDetailsService) (SpringSecurityDaoConfig.java:112); UserDetailsServiceImpl is the only in-repo CentitUserDetailsService. It dispatches by email/phone/login name to PlatformEnvironment.loadUserDetailsBy* whose implementation (actual DB access) lives outside this repo; bean registration is also done by consuming apps."
},
{
"role": "Hasher",
"status": "external",
"symbol": "BCryptPasswordEncoder",
"file": "framework-core/src/main/java/com/centit/framework/security/StandardPasswordEncoderImpl.java",
"lines": "34",
"notes": "The 'passwordEncoder' bean injected at SpringSecurityDaoConfig.java:36-37 is presumably StandardPasswordEncoderImpl (default ctor this(11) -> new BCryptPasswordEncoder(strength) here; Spring Security library, salted bcrypt). The same BCrypt matches call also serves the Comparator. Caveat: the bean itself is defined by consuming apps; SM3PasswordEncoderImpl (unsalted SM3 hash) is an in-repo alternative."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper/secret key is loaded on the verification path; bcrypt's embedded salt is not a pepper. Searched for pepper/secret/HMAC in the security modules."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The bcrypt hash is compared directly; no HMAC or encryption with a pepper is applied in StandardPasswordEncoderImpl.matches (line 77) or elsewhere on the path. SecurityOptUtils.decodeSecurityString in the filter only decodes transport-encoded input."
},
{
"role": "Comparator",
"status": "external",
"symbol": "matches",
"file": "framework-core/src/main/java/com/centit/framework/security/StandardPasswordEncoderImpl.java",
"lines": "78",
"notes": "DaoAuthenticationProvider calls passwordEncoder.matches -> StandardPasswordEncoderImpl.matches (line 77), a thin wrapper (optional passwordPreteat) forwarding to Spring Security BCryptPasswordEncoder.matches here, which re-hashes with the stored salt and compares; one call covers Hasher and Comparator."
},
{
"role": "System",
"status": "present",
"symbol": "onAuthenticationSuccess",
"file": "framework-security/src/main/java/com/centit/framework/security/AjaxAuthenticationSuccessHandler.java",
"lines": "37",
"notes": "Set on the Enforcer via setAuthenticationSuccessHandler(createAjaxSuccessHandler()) (SpringSecurityDaoConfig.java:88, SpringSecurityBaseConfig.java:185). After successful authentication it sets local params, logs the login, sets session cookie/headers and returns the login success response."
}
]
}

Xet Storage Details

Size:
4.86 kB
·
Xet hash:
31f493451cb91a6483ee087d8230b38968a22582588a9167b6ef9f184fad0c3f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.