Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /verifiable_token_based_authentication /zhouxx_boot-plus.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client sends the Authorization header to the JWT filter; the repo is a Spring Boot starter library (no web UI/SDK). Callers are outside the repo; tests excluded." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "doFilterInternal", | |
| "file": "boot-plus-security/src/main/java/com/alilitech/security/jwt/authorization/JwtTokenAuthorizationFilter.java", | |
| "lines": "61", | |
| "notes": "doFilterInternal in JwtTokenAuthorizationFilter (OncePerRequestFilter) reads the Authorization header via ExtensibleSecurity.resolveToken, throws AccessDeniedException if missing/blacklisted/invalid, calls jwtTokenUtils.validateToken at line 82, then sets the SecurityContext. Registered in JwtAuthorizationConfiguration.authorizationSecurityFilterChain (boot-plus-security/src/main/java/com/alilitech/security/jwt/authorization/JwtAuthorizationConfiguration.java:51), active when security.token.type=JWT (SecurityBizProperties defaults type to JWT, though @ConditionalOnProperty has no matchIfMissing); the alternative ST opaque-token flow (TokenAuthorizationFilter) was rejected." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "present", | |
| "symbol": "validateToken", | |
| "file": "boot-plus-security/src/main/java/com/alilitech/security/jwt/JwtTokenUtils.java", | |
| "lines": "136", | |
| "notes": "Reached from Enforcer doFilterInternal (JwtTokenAuthorizationFilter.java:82). JwtTokenUtils.validateToken builds an auth0 JWTVerifier with the HMAC algorithm and returns true/false (signature + exp checked by the library); principal is then extracted by getAuthentication (JwtTokenUtils.java:168) using JWT.decode." | |
| }, | |
| { | |
| "role": "Key manager", | |
| "status": "present", | |
| "symbol": "afterPropertiesSet", | |
| "file": "boot-plus-security/src/main/java/com/alilitech/security/jwt/JwtTokenUtils.java", | |
| "lines": "195", | |
| "notes": "validateToken (JwtTokenUtils.java:140) uses the algorithm field built in afterPropertiesSet, which derives Algorithm.HMAC256 from securityBizProperties.getJwt().getSecret(). Caveat: the secret has a hard-coded default \"auth_chm\" (SecurityBizProperties.java:155), overridable via security.token.jwt.secret." | |
| }, | |
| { | |
| "role": "Cryptographer", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "boot-plus-security/src/main/java/com/alilitech/security/jwt/JwtTokenUtils.java", | |
| "lines": "140", | |
| "notes": "Called from Verifier validateToken: JWT.require(algorithm).build().verify(token) from auth0 java-jwt (com.auth0.jwt.JWTVerifier with HMAC256 Algorithm) verifies the HMAC-SHA256 MAC and expiry. Token generation uses .sign(algorithm) in generateToken (JwtTokenUtils.java:98)." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "After doFilterInternal passes, filterChain.doFilter (JwtTokenAuthorizationFilter.java:105) hands off to the consuming application's handlers; boot-plus is a starter library with no protected business handler wired to this filter (LogsResource in boot-plus-log is not demonstrably wired to this chain)." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.33 kB
- Xet hash:
- 7e7450c15d1339780a0e2e5201e2a3e8b88b78ae74660ca574412397b5a3237e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.