Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /verifiable_token_based_authentication /gvfbossa_bws-base-api.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The repo is a backend base API with no in-repo client (UI/SDK/CLI) that sends the access_token cookie or Bearer header; the caller is outside the repo. Only tests (src/test) exercise it." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "JWTAuthorizationFilter", | |
| "file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java", | |
| "lines": "23", | |
| "notes": "Registered in the security chain by WebSecurityConfig.securityFilterChain (src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/WebSecurityConfig.java:96, addFilterAfter) with anyRequest().authenticated() (line 92). doFilterInternal (line 44) resolves the token from the access_token cookie or Authorization Bearer header, calls getAuthentication (line 53) and sets the SecurityContext, otherwise clears it so Spring rejects the request." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "present", | |
| "symbol": "getAuthentication", | |
| "file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java", | |
| "lines": "72", | |
| "notes": "Called from JWTAuthorizationFilter.doFilterInternal at src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:53. Parses and verifies the signed JWT with jjwt, extracts the subject and returns a UsernamePasswordAuthenticationToken, or null on any exception (expiry/signature checks are done by jjwt)." | |
| }, | |
| { | |
| "role": "Key manager", | |
| "status": "present", | |
| "symbol": "getSecretKey", | |
| "file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/SecurityConstants.java", | |
| "lines": "55", | |
| "notes": "Called from getAuthentication at src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:75 (verifyWith(SecurityConstants.getSecretKey())). Returns the static HMAC SecretKey built in init (line 36/42) from the secret.key property via Keys.hmacShaKeyFor; the same key is used for signing in JWTAuthenticationFilter.java:98." | |
| }, | |
| { | |
| "role": "Cryptographer", | |
| "status": "external", | |
| "symbol": "parseSignedClaims", | |
| "file": "src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java", | |
| "lines": "77", | |
| "notes": "Reached from getAuthentication (src/main/java/br/com/bossawebsolutions/base_api/infrastructure/web/security/JWTAuthorizationFilter.java:72). jjwt (io.jsonwebtoken) Jwts.parser().verifyWith(key).build().parseSignedClaims(token) verifies the HMAC (HS512) signature and expiry; issuing side uses signWith in JWTAuthenticationFilter.java:98." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The repo is a reusable base API/library (only BwsBaseApiApplication, security and config classes); no controller or business handler exists in src/main behind the JWTAuthorizationFilter (rule 6.1.7). JWTAuthenticationFilter.successfulAuthentication (JWTAuthenticationFilter.java:79) belongs to the token-issuing login sub-flow, not the verification path." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.42 kB
- Xet hash:
- ad446d0d54d04a6d93e65ea32e5ddff97d08c9de01c0c80d19b41f71b63f5457
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.