Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /verifiable_token_based_authentication /ddphin_ddphin-security.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The repo is a Spring Security library with no client/UI/SDK code; the caller sending 'Authorization: Bearer <jwt>' (read in RequestHelper.getToken, src/main/java/com/ddphin/security/util/RequestHelper.java:8) is outside the repo." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "AJwtAuthenticationFilter", | |
| "file": "src/main/java/com/ddphin/security/filter/AJwtAuthenticationFilter.java", | |
| "lines": "30", | |
| "notes": "OncePerRequestFilter installed by AJwtLoginConfigurer.configure (configurer/AJwtLoginConfigurer.java:34, addFilterAfter LogoutFilter). doFilterInternal (line 47) extracts the bearer token, calls AuthenticationManager.authenticate (line 59) and on failure invokes the failure handler and returns without continuing the chain." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "present", | |
| "symbol": "validate", | |
| "file": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java", | |
| "lines": "82", | |
| "notes": "Reached from the Enforcer via AuthenticationManager -> AJwtAuthenticationProvider.authenticate (provider/AJwtAuthenticationProvider.java:25), which calls jwtService.validate at line 28. validate verifies HMAC signature, issuer and 'ip' claim with auth0 java-jwt, then compares against the stored token (queryToken, abstract) and returns the DecodedJWT; caveat: it returns null on mismatch and the provider does not reject null." | |
| }, | |
| { | |
| "role": "Key manager", | |
| "status": "present", | |
| "symbol": "JWT_HMAC256", | |
| "file": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java", | |
| "lines": "28", | |
| "notes": "validate (AJWTAbstractService.java:83) obtains the HMAC key from this hardcoded constant field (\"ddphin\") via Algorithm.HMAC256(JWT_HMAC256); the same constant is used for signing at line 121. Caveat: hardcoded secret, no key management beyond the constant." | |
| }, | |
| { | |
| "role": "Cryptographer", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "src/main/java/com/ddphin/security/endpoint/service/AJWTAbstractService.java", | |
| "lines": "87", | |
| "notes": "validate (AJWTAbstractService.java:82) builds JWT.require(Algorithm.HMAC256(...)) at line 83 and calls JWTVerifier.verify(token) at line 87 from the auth0 java-jwt library (com.auth0.jwt), which checks the HMAC-SHA256 signature and claims." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Library/starter repo: after the filter passes it calls filterChain.doFilter (AJwtAuthenticationFilter.java:73) into the consuming application's handlers, none of which are in the repo (no controllers found). AJwtAuthenticationSuccessHandler.onAuthenticationSuccess (handler/AJwtAuthenticationSuccessHandler.java:28) only refreshes the token, not a business action." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.07 kB
- Xet hash:
- 2794ebe31f3ca3b827b1d38c5a5a9fd9a5b34bd14b42ce35a8b709ac0469687e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.