Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /session_based_access_control /drewwills_fbms.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client sends a credential to the FBMS REST API; callers (uPortal/soffit front ends) are outside this repo. Searched fbms-webapp and fbms-core for JS/UI or SDK clients; none exist." | |
| }, | |
| { | |
| "role": "Authentication enforcer", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Authentication is stateless Bearer-JWT, not an opaque session id: SoffitApiPreAuthenticatedProcessingFilter (uPortal library) is built with a signature key and added at fbms-webapp/src/main/java/org/apereo/portal/fbms/SpringSecurityConfiguration.java:88/96. A signature-validated JWT is the verifiable-token pattern, so the session-side enforcer is missing." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The credential is verified only by JWT signature via SoffitApiAuthenticationManager (SpringSecurityConfiguration.java:184) and jjwt parseClaimsJws (fbms-core/.../util/UserServices.java:96, custom-claims helper); no lookup of a session id against server-side state exists." | |
| }, | |
| { | |
| "role": "Session manager", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No server-side session store is used for authentication; sessionManagement() at SpringSecurityConfiguration.java:173 only disables session fixation handling, and principals come from the JWT on every request." | |
| }, | |
| { | |
| "role": "Authorisation enforcer", | |
| "status": "present", | |
| "symbol": "configure", | |
| "file": "fbms-webapp/src/main/java/org/apereo/portal/fbms/SpringSecurityConfiguration.java", | |
| "lines": "81", | |
| "notes": "Reached after the (JWT) pre-auth filter added at line 96; configure in SpringSecurityConfiguration builds authorizeRequests() (line 97) so Spring Security's FilterSecurityInterceptor blocks requests failing the rules, e.g. GET /api/v1/submissions/*/users/* requires hasAuthority(readOthersAuthority) at line 118, anyRequest().denyAll() at 158." | |
| }, | |
| { | |
| "role": "Decider", | |
| "status": "external", | |
| "symbol": "decide", | |
| "file": "fbms-webapp/src/main/java/org/apereo/portal/fbms/SpringSecurityConfiguration.java", | |
| "lines": "118", | |
| "notes": "Called by the Authorisation enforcer configured at SpringSecurityConfiguration.java:81/97; Spring Security's AccessDecisionManager (AffirmativeBased with WebExpressionVoter) decide evaluates hasAuthority(readOthersAuthority) against the principal's granted authorities (uPortal groups from the token). The repo only configures the rule at line 118." | |
| }, | |
| { | |
| "role": "Policy provider", | |
| "status": "present", | |
| "symbol": "readOthersAuthority", | |
| "file": "fbms-webapp/src/main/java/org/apereo/portal/fbms/SpringSecurityConfiguration.java", | |
| "lines": "78", | |
| "notes": "The Decider rule at line 118 reads this field, which holds the authorities allowed to read others' submissions (property org.apereo.portal.fbms.security.readOthersAuthority, default 'Portal Administrators'); no method provides the policy, so the field is cited. Sibling policy fields: createAuthority:60, updateAuthority:66, deleteAuthority:72; the principal's privileges themselves are carried as groups in the JWT." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "getSubmissionForUser", | |
| "file": "fbms-webapp/src/main/java/org/apereo/portal/fbms/api/v1/SubmissionsRestController.java", | |
| "lines": "215", | |
| "notes": "Handler for GET /api/v1/submissions/{fname}/users/{username}, reached only when the authorisation rule at SpringSecurityConfiguration.java:118 passes; returns another user's most recent submission. Caveat: the guarding authentication is JWT-based, only the authorisation half of the pattern is present." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.02 kB
- Xet hash:
- 10da328c29b44d546098c50d044f39fb84002045991d4d5ca7cf490be06a0aba
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.