Buckets:

AnonymousSpottedToad/human_verified_bucket / human_annotated /mappings /java /authentication_pwd__contentmunch_contentmunch-parent.json
download
raw
4.76 kB
{
"role_mappings": [
{
"role": "Subject",
"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).",
"status": "missing",
"nodeId": null
},
{
"role": "Enforcer",
"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.",
"status": "present",
"nodeId": null
},
{
"role": "Verification manager",
"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.",
"status": "external",
"nodeId": null
},
{
"role": "Password store",
"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.",
"status": "present",
"nodeId": null
},
{
"role": "Hasher",
"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.",
"status": "external",
"nodeId": null
},
{
"role": "Pepper store",
"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.",
"status": "missing",
"nodeId": null
},
{
"role": "Encrypter",
"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.",
"status": "missing",
"nodeId": null
},
{
"role": "Comparator",
"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.",
"status": "external",
"nodeId": null
},
{
"role": "System",
"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.",
"status": "present",
"nodeId": null
}
]
}

Xet Storage Details

Size:
4.76 kB
·
Xet hash:
a84c818c0d29938f06a24c12616e7d151535c5f97481dcd05d817277c9e92da0

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