Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary_without_sequence /mappings /java /authentication_pwd /42BV_rest-secure-spring-boot-starter.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Starter library has no in-repo client (UI/SDK/CLI) posting credentials to POST /authentication; the caller is outside the repo. Only tests send credentials, which do not count." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "doFilterInternal", | |
| "file": "src/main/java/nl/_42/restsecure/autoconfigure/RestAuthenticationFilter.java", | |
| "lines": "67", | |
| "notes": "doFilterInternal in RestAuthenticationFilter (registered via addFilterAfter in WebSecurityAutoConfig.java:195, built in filterChain at :191) matches POST /authentication and delegates to doLogin (:75), which builds a token from the JSON username/password and calls authenticationManager.authenticate (:81); on AuthenticationException it calls onAuthenticationFail and does not continue the chain." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "external", | |
| "symbol": "authenticate", | |
| "file": "src/main/java/nl/_42/restsecure/autoconfigure/WebSecurityAutoConfig.java", | |
| "lines": "172", | |
| "notes": "Reached from RestAuthenticationFilter.java:81 (authenticationManager.authenticate). Default branch (UserDetailsService bean, no MfaAuthenticationProvider) configures Spring's DaoAuthenticationProvider via auth.userDetailsService(...).passwordEncoder(passwordEncoder()) at this line; its authenticate loads the user and checks the password. Alternative: MfaAuthenticationProvider when configured." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "loadUserByUsername", | |
| "file": "src/main/java/nl/_42/restsecure/autoconfigure/authentication/AbstractUserDetailsService.java", | |
| "lines": "19", | |
| "notes": "DaoAuthenticationProvider (configured at WebSecurityAutoConfig.java:172) calls loadUserByUsername, which delegates to abstract findUserByUsername (:16) and wraps the user (with its stored hashed password) in UserDetailsAdapter. Caveat: the concrete lookup is supplied by the consuming application." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/nl/_42/restsecure/autoconfigure/WebSecurityAutoConfig.java", | |
| "lines": "172", | |
| "notes": "Spring BCryptPasswordEncoder.matches, invoked internally by DaoAuthenticationProvider, hashes the presented password with the stored salt; activated by passwordEncoder(passwordEncoder()) at this line, encoder bean created by new BCryptPasswordEncoder() at WebSecurityAutoConfig.java:127. Same call also covers the Comparator." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper/secret key is used on the verification path; grep for pepper/Cipher/encrypt in src/main found nothing. The bcrypt salt is not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of the password hash with a pepper; only BCryptPasswordEncoder hashing (WebSecurityAutoConfig.java:127) is used, and a hash is not an Encrypter." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/nl/_42/restsecure/autoconfigure/WebSecurityAutoConfig.java", | |
| "lines": "172", | |
| "notes": "Spring BCryptPasswordEncoder.matches, called internally by DaoAuthenticationProvider (configured at this line), compares the recomputed hash with the stored hash; one call covers both Hasher and Comparator." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "authenticate", | |
| "file": "src/main/java/nl/_42/restsecure/autoconfigure/authentication/AuthenticationController.java", | |
| "lines": "29", | |
| "notes": "After successful authentication, RestAuthenticationFilter.doLogin calls onAuthenticationSuccess (:82, stores SecurityContext in session) and chain.doFilter (:83), which reaches this POST /authentication handler in AuthenticationController; it returns the AuthenticationResult for the logged-in user." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.28 kB
- Xet hash:
- 51dbd23b39a95a608781903fd7b71a59df4a08dfda9563fe2927a71497a35b16
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.