Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /session_based_access_control /ZhongYingHao_msAuth.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The repo is a Spring Security starter library with no client/UI/SDK code that sends the accessToken header to the traced filter; the caller is outside the repo." | |
| }, | |
| { | |
| "role": "Authentication enforcer", | |
| "status": "present", | |
| "symbol": "doFilterInternal", | |
| "file": "src/main/java/ms/cb/starter/filter/JwtAuthenticationTokenFilter.java", | |
| "lines": "54", | |
| "notes": "doFilterInternal in JwtAuthenticationTokenFilter, registered via addFilterBefore at src/main/java/ms/cb/starter/config/security/SecurityConfig.java:151; it reads the 'accessToken' header and resolves it remotely against the Authing server (getProfile, line 75), storing the resulting principal and authorities in SecurityContextHolder. Caveat: requests without a token are passed on and are rejected later by anyRequest().authenticated() (SecurityConfig.java:146); an alternative introspection filter JwtAuthenticationAuthFilter.doFilterInternal (JwtAuthenticationAuthFilter.java:46, introspectToken on the Authorization header) runs on the same chain." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "external", | |
| "symbol": "getProfile", | |
| "file": "src/main/java/ms/cb/starter/filter/JwtAuthenticationTokenFilter.java", | |
| "lines": "75", | |
| "notes": "Called by the Authentication enforcer doFilterInternal (JwtAuthenticationTokenFilter.java:54): Authing SDK AuthenticationClient.getProfile resolves the access token against the Authing server and returns the user (principal); no local signature check is done. Client options are built by AuthingUtils.getAuthenticationClientOptionsByAccessToken (AuthingUtils.java:55). The same call also covers Session manager." | |
| }, | |
| { | |
| "role": "Session manager", | |
| "status": "external", | |
| "symbol": "getProfile", | |
| "file": "src/main/java/ms/cb/starter/filter/JwtAuthenticationTokenFilter.java", | |
| "lines": "75", | |
| "notes": "Reached from the Verifier call at JwtAuthenticationTokenFilter.java:75: the open sessions/tokens are kept by the external Authing IdP (AuthenticationClient.getProfile looks the token up server-side); one library call covers both Verifier and Session manager. The app itself is STATELESS (SecurityConfig.java:142), so no in-repo session store exists." | |
| }, | |
| { | |
| "role": "Authorisation enforcer", | |
| "status": "present", | |
| "symbol": "doFilter", | |
| "file": "src/main/java/ms/cb/starter/filter/DynamicSecurityFilter.java", | |
| "lines": "42", | |
| "notes": "After the authentication filter sets the principal, DynamicSecurityFilter.doFilter (registered before FilterSecurityInterceptor at SecurityConfig.java:155) calls super.beforeInvocation (line 59), which throws AccessDeniedException if the decision manager rejects; otherwise the chain continues." | |
| }, | |
| { | |
| "role": "Decider", | |
| "status": "present", | |
| "symbol": "decide", | |
| "file": "src/main/java/ms/cb/starter/manager/DynamicAccessDecisionManager.java", | |
| "lines": "23", | |
| "notes": "Invoked by AbstractSecurityInterceptor.beforeInvocation from DynamicSecurityFilter.java:59 (manager set at DynamicSecurityFilter.java:34); compares the URL's required ConfigAttributes against the principal's GrantedAuthorities (roles/resources fetched from Authing getRoleList/getAuthorizedResources at JwtAuthenticationTokenFilter.java:80/90) and throws AccessDeniedException on no match." | |
| }, | |
| { | |
| "role": "Policy provider", | |
| "status": "present", | |
| "symbol": "getAttributes", | |
| "file": "src/main/java/ms/cb/starter/filter/DynamicSecurityMetadataSource.java", | |
| "lines": "40", | |
| "notes": "Supplied to the interceptor via obtainSecurityMetadataSource (DynamicSecurityFilter.java:77); returns the authorities required for the request path from configAttributeMap, loaded from DynamicSecurityServiceImpl.loadDataSource (DynamicSecurityServiceImpl.java:14). Caveat: the default loadDataSource returns an empty map, so by default every authenticated request is allowed (meant to be overridden via @ConditionalOnMissingBean)." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Starter/library repo: no controllers or business handlers exist in src/main/java (only config, filters, utils); per rule 6.1.7 System is missing. AuthingUtils methods are helpers, not handlers guarded by the chain." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.57 kB
- Xet hash:
- a71a746c2938f9e954c4189731d30d5185a85d0ac9a42199c61505b1457d5bec
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.