Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /session_based_access_control /cloudfoundry_uaa.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The JSESSIONID cookie is sent by an external browser; the in-repo Thymeleaf templates are server-rendered and contain no client code that explicitly sends the session id to the uiSecurity chain (server/.../login/LoginSecurityConfiguration.java:503). Tests ignored." | |
| }, | |
| { | |
| "role": "Authentication enforcer", | |
| "status": "present", | |
| "symbol": "uiSecurity", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/login/LoginSecurityConfiguration.java", | |
| "lines": "503", | |
| "notes": "Catch-all UI SecurityFilterChain bean (order UI_SECURITY) in LoginSecurityConfiguration; it installs Spring Security's session-backed security-context filter (securityContext config line 556) and requires fullyAuthenticated for /** (line 534), redirecting unauthenticated browsers to /login via EXCEPTION_HANDLING. Spring Session's springSessionRepositoryFilter is registered in uaa/.../UaaWebApplicationInitializer.java:48; in-repo SessionResetFilter (authentication/SessionResetFilter.java:58) is added at position 102 as an extra post-load session check." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "external", | |
| "symbol": "loadDeferredContext", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/login/LoginSecurityConfiguration.java", | |
| "lines": "556", | |
| "notes": "Reached from uiSecurity (line 503): the securityContext configuration (line 556) makes Spring Security's SecurityContextHolderFilter call HttpSessionSecurityContextRepository.loadDeferredContext, which reads the principal (SPRING_SECURITY_CONTEXT) from the HttpSession resolved from JSESSIONID by Spring Session's SessionRepositoryFilter (MapSessionRepository.findById drops expired sessions). No in-repo method performs this lookup." | |
| }, | |
| { | |
| "role": "Session manager", | |
| "status": "present", | |
| "symbol": "sessionRepository", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/web/beans/UaaMemorySessionConfig.java", | |
| "lines": "38", | |
| "notes": "Reached from the Verifier via Spring Session's SessionRepositoryFilter (@EnableSpringHttpSession, line 22). Default store (servlet.session-store defaults to 'memory', web/beans/UaaSessionConfig.java:15) is a MapSessionRepository backed by the in-repo PurgeableSessionMap (web/beans/PurgeableSessionMap.java:53, purges expired sessions) with the idle timeout set at line 43. Alternative 'database' store: UaaJdbcSessionConfig (JdbcIndexedSessionRepository)." | |
| }, | |
| { | |
| "role": "Authorisation enforcer", | |
| "status": "present", | |
| "symbol": "uiSecurity", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/login/LoginSecurityConfiguration.java", | |
| "lines": "503", | |
| "notes": "Same bean method as the Authentication enforcer: its authorizeHttpRequests block (line 525) installs Spring Security's AuthorizationFilter, which runs after the session principal is loaded and blocks requests that do not satisfy the per-path rules. The filter itself is framework-provided, so the chain bean is cited." | |
| }, | |
| { | |
| "role": "Decider", | |
| "status": "external", | |
| "symbol": "check", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/login/LoginSecurityConfiguration.java", | |
| "lines": "525", | |
| "notes": "Reached from the Authorisation enforcer uiSecurity (line 503): AuthorizationFilter calls RequestMatcherDelegatingAuthorizationManager.check, delegating to AuthenticatedAuthorizationManager / AuthorityAuthorizationManager (Spring Security) configured by authorizeHttpRequests at line 525. No in-repo decision method." | |
| }, | |
| { | |
| "role": "Policy provider", | |
| "status": "present", | |
| "symbol": "authorizeHttpRequests", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/login/LoginSecurityConfiguration.java", | |
| "lines": "525", | |
| "notes": "The Decider (check, line 525) evaluates the in-repo rule set declared in the authorizeHttpRequests lambda of uiSecurity (lines 525-534: /force_password_change fullyAuthenticated, /reset_password, /create_account anonymous, /** fullyAuthenticated). No method holds the policy, so the configuration call is cited; principal authorities come from the session's UaaAuthentication." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "home", | |
| "file": "server/src/main/java/org/cloudfoundry/identity/uaa/home/HomeController.java", | |
| "lines": "70", | |
| "notes": "HomeController.home (mapped to / and /home, line 69) is reached only after uiSecurity (LoginSecurityConfiguration.java:503) authenticates the session and authorizes /** as fullyAuthenticated (line 534); it renders the home page for the session principal." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.88 kB
- Xet hash:
- e4851860e9f8ce398f0d0842e743e8eb27dea06c9b7b24c116bb4967eeea657b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.