Buckets:

download
raw
3.43 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The caller sending X-Access-Token with header AuthorizationType=Jwt is outside the repo. Searched for AUTHORIZATION_TYPE usage and JS/HTML clients; only the interceptor reads the header (Easy4jSecurityFilterInterceptor.java:128), no in-repo client sends a JWT."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "Easy4jSecurityFilterInterceptor",
"file": "ej-modules/ej-sauth/src/main/java/easy4j/module/sauth/filter/Easy4jSecurityFilterInterceptor.java",
"lines": "51",
"notes": "Spring MVC handler registered via SPI (META-INF/services/easy4j.infra.webmvc.Easy4JWebMvcHandler, loaded by PerRequestInterceptor.java:59). preHandle (line 83) reads X-Access-Token, selects the Jwt authenticator when header AuthorizationType=Jwt (line 135) and calls Easy4jAuth.authentication (line 138 -> Easy4jSecurityService.authentication:77), throwing EasyException on error (line 145). Default branch (no header) is the opaque ShaToken session lookup, which is not this pattern."
},
{
"role": "Verifier",
"status": "present",
"symbol": "verifyPre",
"file": "ej-modules/ej-sauth/src/main/java/easy4j/module/sauth/authentication/JwtAuthAuthentication.java",
"lines": "84",
"notes": "Reached from the Enforcer via Easy4jSecurityService.authentication (core/Easy4jSecurityService.java:94). In interceptor scope it calls JWTUtils.verify (line 98) and sets error A00034 on signature failure, then checks the server-side session. Caveat: principal (un claim) is extracted earlier in querySession (line 35/47) before verification, and exp claim is not validated (session validity is checked instead)."
},
{
"role": "Key manager",
"status": "present",
"symbol": "jwtSecret",
"file": "ej-modules/ej-base/src/main/java/easy4j/infra/base/properties/EjSysProperties.java",
"lines": "335",
"notes": "JWTUtils.verify (JWTUtils.java:68), called from verifyPre, fetches the HMAC secret from the EjSysProperties jwtSecret config property via Easy4j.getProperty. The field holds a hard-coded default secret; fallback 'Unknown' if absent."
},
{
"role": "Cryptographer",
"status": "external",
"symbol": "verify",
"file": "ej-modules/ej-sauth/src/main/java/easy4j/module/sauth/authentication/JWTUtils.java",
"lines": "69",
"notes": "Hutool cn.hutool.jwt.JWT.of(token).setKey(secret).verify() checks the HMAC signature (HS256 default); in-repo wrapper chain verifyPre (JwtAuthAuthentication.java:98) -> JWTUtils.verify:66. Same library signs tokens in genJwtToken (JWTUtils.java:43)."
},
{
"role": "System",
"status": "present",
"symbol": "getOnlineUserInfo",
"file": "ej-modules/ej-sauth/src/main/java/easy4j/module/sauth/controller/SAuthController.java",
"lines": "72",
"notes": "Controller in package easy4j.* without @NoLogin, so isNeedLogin (AbstractAuthorizationStrategy.java:239) returns true and it is reached only after Easy4jSecurityFilterInterceptor.preHandle binds the user context (line 147); returns the authenticated online user. The repo is a framework/starter, so this in-module endpoint is the only concrete protected handler wired to the same enforcer."
}
]
}

Xet Storage Details

Size:
3.43 kB
·
Xet hash:
69f56ab5ccd735b32b45520d888d6227aab5faf8512a89fa6762a121edd39af8

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