Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /authentication_pwd /contentmunch_contentmunch-parent.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client (UI/SDK/CLI) posts credentials to /api/auth/login; the caller is outside the repo (only tests call it)." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "login", | |
| "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java", | |
| "lines": "36", | |
| "notes": "Anchor: POST /api/auth/login handler in AuthController (registered via @ImportAutoConfiguration in AuthenticationAutoConfiguration.java:18, permitted in SecurityConfig.java:42). It passes username/password to authenticationManager.authenticate (line 38) and refuses on failure because the thrown BadCredentialsException is mapped to 401 by SecurityExceptionHandler." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "external", | |
| "symbol": "authenticate", | |
| "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java", | |
| "lines": "38", | |
| "notes": "Reached from Enforcer login (AuthController.java:38). Spring Security's ProviderManager/DaoAuthenticationProvider.authenticate (AuthenticationManager bean exposed at SecurityConfig.java:54) loads the user via the UserDetailsService and checks the password; no in-repo AuthenticationProvider." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "loadContentmunchUser", | |
| "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/service/PropertyUserDetailsService.java", | |
| "lines": "14", | |
| "notes": "DaoAuthenticationProvider calls loadUserByUsername (ContentmunchUserDetailsService.java:11), which delegates to PropertyUserDetailsService.loadContentmunchUser, the default bean (AuthenticationAutoConfiguration.java:23, @ConditionalOnMissingBean). It looks users (with password field) up in contentmunch.auth.users config properties (AuthConfigProperties.java:17); the stored value may be plaintext or {id}-prefixed hash depending on config." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/config/SecurityConfig.java", | |
| "lines": "55", | |
| "notes": "Called internally by DaoAuthenticationProvider (from authenticate at AuthController.java:38). No PasswordEncoder bean is declared in the repo, so Spring uses the default DelegatingPasswordEncoder (PasswordEncoderFactories, bcrypt by default / {noop} etc.) when building the AuthenticationManager at SecurityConfig.java:55; one matches call covers both Hasher and Comparator." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the login path; searched for pepper/secret/HMAC. contentmunch.auth.secret (AuthConfigProperties.java:15) is the JWT signing key used in TokenizationService.init, not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No encryption of the password hash with a pepper anywhere on the DaoAuthenticationProvider path; only JWT HMAC signing exists (TokenizationService.java:42), unrelated to password verification." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/config/SecurityConfig.java", | |
| "lines": "55", | |
| "notes": "Same single call as Hasher: DaoAuthenticationProvider.additionalAuthenticationChecks invokes the default DelegatingPasswordEncoder.matches, which hashes and compares; activated via the AuthenticationManager built at SecurityConfig.java:55 and reached from authenticate at AuthController.java:38." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "generateAccessToken", | |
| "file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/service/TokenizationService.java", | |
| "lines": "45", | |
| "notes": "Success branch of Enforcer login (AuthController.java:44) issues the JWT access token (and refresh token at line 45) via TokenizationService.generateAccessToken, then sets cookies and returns the user." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.56 kB
- Xet hash:
- 1cbe5bcbba2a240e853f9119642927552eb7c32eb532f448435c2f7248327e49
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.