Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /authentication_pwd /ctlabs-dev_auth-spring-boot-starter.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client sends credentials to POST /api/auth/login; examples/ contain only Spring Boot main classes and tests do not count. The caller is outside the repo." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login", | |
| "file": "src/main/java/dev/ctlabs/starter/auth/application/service/AuthService.java", | |
| "lines": "88", | |
| "notes": "Reached from the POST /login endpoint AuthController.login (AuthController.java:72, delegating at :74). AuthService.login calls authenticationManager.authenticate (line 101) and rethrows AuthenticationException on failure (line 116-118), so tokens are only issued on success." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "external", | |
| "symbol": "authenticate", | |
| "file": "src/main/java/dev/ctlabs/starter/auth/application/service/AuthService.java", | |
| "lines": "101", | |
| "notes": "Enforcer AuthService.login calls AuthenticationManager.authenticate here, which delegates to Spring's DaoAuthenticationProvider configured in SecurityConfig.authenticationProvider (SecurityConfig.java:101). The framework fetches the user via UserDetailsService and checks the password with the PasswordEncoder." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "loadUserByUsername", | |
| "file": "src/main/java/dev/ctlabs/starter/auth/infrastructure/security/CustomUserDetailsService.java", | |
| "lines": "33", | |
| "notes": "DaoAuthenticationProvider (SecurityConfig.java:101, new DaoAuthenticationProvider(userDetailsService)) calls loadUserByUsername, which looks up the User via UserRepository.findByEmail/findByPhoneNumber (lines 38/41) and returns the stored bcrypt hash (line 69)." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/dev/ctlabs/starter/auth/infrastructure/config/SecurityConfig.java", | |
| "lines": "102", | |
| "notes": "Verification manager DaoAuthenticationProvider internally calls PasswordEncoder.matches, set via setPasswordEncoder here; the encoder is Spring's BCryptPasswordEncoder bean (AuthAutoConfiguration.java:86). One matches call covers both Hasher and Comparator." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Searched src/main for pepper/secret applied to passwords; only plain BCryptPasswordEncoder (AuthAutoConfiguration.java:86) is used, and the bcrypt salt is not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption (Cipher/HMAC) of the password hash on the verification path; the bcrypt hash is compared directly by BCryptPasswordEncoder.matches." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/dev/ctlabs/starter/auth/infrastructure/config/SecurityConfig.java", | |
| "lines": "102", | |
| "notes": "Verification manager DaoAuthenticationProvider calls PasswordEncoder.matches (Spring BCryptPasswordEncoder, bean at AuthAutoConfiguration.java:86) to compare the submitted password against the stored hash; configured via setPasswordEncoder here. The same matches call also covers the Hasher." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "generateAuthResponse", | |
| "file": "src/main/java/dev/ctlabs/starter/auth/application/service/AuthService.java", | |
| "lines": "761", | |
| "notes": "Called by Enforcer AuthService.login on the success branch (AuthService.java:112) after authenticate succeeds; it issues the JWT access token and refresh token returned to the client." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.93 kB
- Xet hash:
- 47e50b8a8c57ee44e6fc38d6e991f886e0f20672803ae532fb9cea5fb88c20cc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.