Buckets:

download
raw
3.19 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "Repo contains only Spring Boot starters; no in-repo client (UI/SDK/CLI) sends the Bearer header or auth cookie to the jwtAuthFilter. Only tests exercise it; callers are outside the repo."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "doFilterInternal",
"file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/config/SecurityConfig.java",
"lines": "65",
"notes": "doFilterInternal of the anonymous OncePerRequestFilter built by jwtAuthFilter (SecurityConfig.java:58), installed via addFilterBefore in filterChain (SecurityConfig.java:46) with anyRequest().authenticated(). Extracts the token from the Bearer header or auth cookie, calls validateToken (line 89) and sets the SecurityContext; unauthenticated requests are then rejected by the chain."
},
{
"role": "Verifier",
"status": "present",
"symbol": "validateToken",
"file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/service/TokenizationService.java",
"lines": "119",
"notes": "Called from doFilterInternal at SecurityConfig.java:89. Parses and verifies the HS-signed JWT (signature + expiry via jjwt) and returns true/false; principal extraction is done by extractUser (line 138) / extractUsername (line 129), which re-verify the token."
},
{
"role": "Key manager",
"status": "present",
"symbol": "init",
"file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/service/TokenizationService.java",
"lines": "41",
"notes": "@PostConstruct init derives the HMAC SecretKey field via Keys.hmacShaKeyFor from the configured secret (AuthConfigProperties.secret, contentmunch.auth.secret); validateToken uses this secretKey in verifyWith at TokenizationService.java:121."
},
{
"role": "Cryptographer",
"status": "external",
"symbol": "parseSignedClaims",
"file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/service/TokenizationService.java",
"lines": "121",
"notes": "Reached from validateToken (TokenizationService.java:119): jjwt Jwts.parser().verifyWith(secretKey).build().parseSignedClaims(token) verifies the HMAC signature (io.jsonwebtoken JwtParser). Tokens are signed with signWith(secretKey) in generateAccessToken (line 62)."
},
{
"role": "System",
"status": "present",
"symbol": "getProtected",
"file": "contentmunch-auth-spring-boot-starter/src/main/java/com/contentmunch/authentication/controller/AuthController.java",
"lines": "78",
"notes": "GET /api/auth/me in AuthController (registered by AuthenticationAutoConfiguration.java:17) is not in the permitAll list (SecurityConfig.java:42), so it is reached only after doFilterInternal authenticates the JWT; it returns the principal from the SecurityContext. generateApiClientToken (line 121) is another protected handler."
}
]
}

Xet Storage Details

Size:
3.19 kB
·
Xet hash:
4439a7861cff3ac2a1e1d95748cc05a7eb11d3923cbce50984c07d105971f1a2

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