Buckets:

download
raw
4.53 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client (UI/SDK/CLI) posts credentials to /api/auth/login; the repo is a backend starter library, callers are outside the repo. Only tests exist in spring-easy-test/src/test, which do not count."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "login",
"file": "spring-easy-security/src/main/java/cn/icexmoon/springeasy/security/controller/AuthController.java",
"lines": "46",
"notes": "login in AuthController (POST /api/auth/login, permitted publicly in SecurityConfig.java:57) receives username/password and calls authenticationManager.authenticate at AuthController.java:48; a failed authentication throws and the token is never issued. JwtAuthenticationFilter is the separate JWT (verifiable-token) enforcer for other routes, not this pattern."
},
{
"role": "Verification manager",
"status": "external",
"symbol": "authenticate",
"file": "spring-easy-security/src/main/java/cn/icexmoon/springeasy/security/controller/AuthController.java",
"lines": "48",
"notes": "Reached from Enforcer login (AuthController.java:48). The AuthenticationManager bean is a Spring Security ProviderManager wrapping DaoAuthenticationProvider built in SecurityConfig.authenticationManager (SecurityConfig.java:82-84); the library authenticate loads the user via UserDetailsService and checks the password with the PasswordEncoder."
},
{
"role": "Password store",
"status": "present",
"symbol": "getOneByUserName",
"file": "spring-easy-security/src/main/java/cn/icexmoon/springeasy/security/service/impl/CustomUserServiceImpl.java",
"lines": "38",
"notes": "DaoAuthenticationProvider calls UserDetailServiceImpl.loadUserByUsername (UserDetailServiceImpl.java:29) -> CustomUserServiceImpl.getByUsername (CustomUserServiceImpl.java:43/44) -> getOneByUserName, which runs a MyBatis-Plus selectOne on table se_user (CustomUser, password field at CustomUser.java:30) by username. Repo declares the query and table."
},
{
"role": "Hasher",
"status": "external",
"symbol": "matches",
"file": "spring-easy-security/src/main/java/cn/icexmoon/springeasy/security/config/SecurityConfig.java",
"lines": "83",
"notes": "No in-repo call: DaoAuthenticationProvider invokes PasswordEncoder.matches internally; the encoder is wired via setPasswordEncoder at SecurityConfig.java:83 and built at SecurityConfig.java:94 as PasswordEncoderFactories.createDelegatingPasswordEncoder() (DelegatingPasswordEncoder, default bcrypt). The same matches call covers both Hasher and Comparator."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper/secret is used on the password verification path; searched for pepper/secret/HMAC in the security module. The bcrypt salt inside DelegatingPasswordEncoder is not a pepper."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No encryption of the password hash (no Cipher/Mac) on the path from login (AuthController.java:46) through DaoAuthenticationProvider; only bcrypt hashing via DelegatingPasswordEncoder."
},
{
"role": "Comparator",
"status": "external",
"symbol": "matches",
"file": "spring-easy-security/src/main/java/cn/icexmoon/springeasy/security/config/SecurityConfig.java",
"lines": "83",
"notes": "Same library call as Hasher: DelegatingPasswordEncoder.matches (Spring Security, bcrypt by default) hashes the submitted password and compares it to the stored hash; invoked internally by DaoAuthenticationProvider, configured via setPasswordEncoder at SecurityConfig.java:83 (bean at SecurityConfig.java:94)."
},
{
"role": "System",
"status": "present",
"symbol": "generateToken",
"file": "spring-easy-security/src/main/java/cn/icexmoon/springeasy/security/service/impl/JwtTokenServiceImpl.java",
"lines": "41",
"notes": "After authenticate succeeds, login (AuthController.java:46) sets the SecurityContext and calls jwtTokenService.generateToken (AuthController.java:62); JwtTokenServiceImpl.generateToken issues access and refresh JWTs and stores the refresh token in Redis."
}
]
}

Xet Storage Details

Size:
4.53 kB
·
Xet hash:
ab2c39e3cf693451d770645ca42e8836c18595c8099ac29c7862e0db99f975e1

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