Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /authentication_pwd /RicardoMorim_Auth-Provider.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client (UI/SDK/CLI) sends credentials to POST /api/auth/login; callers are outside the repo (library/starter). benchmark.py is listed in git but absent from the working tree and is a benchmark script, not a client; tests excluded." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login", | |
| "file": "src/main/java/com/ricardo/auth/controller/AuthController.java", | |
| "lines": "159", | |
| "notes": "login in AuthController (POST /api/auth/login, bean created in AuthAutoConfiguration.java:192ff) receives email+password, calls authenticationManager.authenticate at AuthController.java:176 and returns 401/429 on AuthenticationException, otherwise proceeds to issue tokens." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "external", | |
| "symbol": "authenticate", | |
| "file": "src/main/java/com/ricardo/auth/controller/AuthController.java", | |
| "lines": "176", | |
| "notes": "Reached from Enforcer login (AuthController.java:176). Spring Security ProviderManager/DaoAuthenticationProvider (AuthenticationManager bean from AuthenticationConfiguration at SecurityConfig.java:119, auto-wired with the UserDetailsServiceImpl bean AuthAutoConfiguration.java:148 and the PasswordEncoder bean) loads the user and checks the password. UserServiceImpl.authenticate (UserServiceImpl.java:377) exists but is not on the login path." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "findByEmailWithRoles", | |
| "file": "src/main/java/com/ricardo/auth/repository/user/UserJpaRepository.java", | |
| "lines": "154", | |
| "notes": "DaoAuthenticationProvider calls UserDetailsServiceImpl.loadUserByUsername (UserDetailsServiceImpl.java:41) -> UserServiceImpl.getUserByEmail (UserServiceImpl.java:308) -> UserJpaRepository.findByEmail default (line 67) -> findByEmailWithRoles, a repo-declared @Query returning the user with its bcrypt password hash. JPA is the default repository type; UserPostgreSQLRepository.findByEmail (line 62) is the POSTGRESQL alternative." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/com/ricardo/auth/config/SecurityConfig.java", | |
| "lines": "107", | |
| "notes": "DaoAuthenticationProvider internally calls PasswordEncoder.matches; the encoder is Spring's BCryptPasswordEncoder configured at SecurityConfig.java:107 (passwordEncoder bean, line 106). One matches call both hashes the supplied password with the stored salt and compares (same as Comparator)." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper/secret applied to passwords; searched for pepper, HMAC, secret in password handling. BCrypt salt is not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of the password hash with a pepper key on the verification path; only bcrypt hashing (SecurityConfig.java:107). RSA keys (RsaKeyProvider) are for JWT signing, not password encryption." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/com/ricardo/auth/config/SecurityConfig.java", | |
| "lines": "107", | |
| "notes": "Same single BCryptPasswordEncoder.matches call as the Hasher, invoked inside Spring's DaoAuthenticationProvider (reached from AuthController.java:176); the repo only configures the encoder bean at SecurityConfig.java:107." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "generateAccessToken", | |
| "file": "src/main/java/com/ricardo/auth/service/JwtServiceImpl.java", | |
| "lines": "40", | |
| "notes": "After successful authenticate, login calls jwtService.generateAccessToken at AuthController.java:198 (plus refreshTokenService.createRefreshToken and setAuthCookies) to issue JWT cookies; JwtServiceImpl.generateAccessToken builds the access token." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.24 kB
- Xet hash:
- 30b916e48236b87d84dd110d78b1c98ede700bb6bbcabafaf7aebc9535b6e902
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.