Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /session_based_access_control /codeheadsystems_pk-auth.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "pk-auth is a server-side library; no in-repo client (no JS/HTML/SDK) sends a bearer token to /auth/admin/**. Callers are outside the repo; tests excluded." | |
| }, | |
| { | |
| "role": "Authentication enforcer", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No opaque session-id flow: the Spring chain (pkAuthSecurityFilterChain, pk-auth-spring-boot-starter/.../autoconfigure/PkAuthWebAutoConfiguration.java:115) is SessionCreationPolicy.STATELESS and authenticates via doFilterInternal in PkAuthJwtAuthenticationFilter (pk-auth-spring-boot-starter/.../security/PkAuthJwtAuthenticationFilter.java:56) on a signed JWT bearer token, i.e. the verifiable-token pattern. Same for Dropwizard/Micronaut JWT filters." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The token check is validate in PkAuthJwtValidator (pk-auth-jwt/src/main/java/com/codeheadsystems/pkauth/jwt/PkAuthJwtValidator.java:96), a JWT signature/claims verifier (Nimbus), not a session lookup. An opt-in jti allow-list check (accessTokenStore.exists, line 180) exists but the principal still comes from the self-contained JWT, and the default bean is the no-op store." | |
| }, | |
| { | |
| "role": "Session manager", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No server-side session store on the default path: pkAuthAccessTokenStore returns AccessTokenStore.noop() (pk-auth-spring-boot-starter/.../autoconfigure/PkAuthAutoConfiguration.java:240). Opt-in JdbiAccessTokenStore/DynamoDbAccessTokenStore only record issued JWT jtis for revocation; they do not resolve an opaque session id to a principal." | |
| }, | |
| { | |
| "role": "Authorisation enforcer", | |
| "status": "present", | |
| "symbol": "deleteCredential", | |
| "file": "pk-auth-admin-api/src/main/java/com/codeheadsystems/pkauth/admin/DefaultAdminService.java", | |
| "lines": "139", | |
| "notes": "Reached from the /auth/admin/** handler delete in PkAuthAdminController (pk-auth-spring-boot-starter/.../admin/PkAuthAdminController.java:78), after the JWT principal is placed in the SecurityContext. deleteCredential returns Forbidden unless authorize(actor,target) passes (line 141); every other DefaultAdminService admin operation has the same guard. Caveat: the Spring controller passes the caller as both actor and target." | |
| }, | |
| { | |
| "role": "Decider", | |
| "status": "present", | |
| "symbol": "subjectScoped", | |
| "file": "pk-auth-admin-api/src/main/java/com/codeheadsystems/pkauth/admin/AdminAuthorizer.java", | |
| "lines": "19", | |
| "notes": "deleteCredential calls authorize (DefaultAdminService.java:287), which delegates to authorizer.canAct (line 290); the wired implementation is the lambda returned by AdminAuthorizer.subjectScoped, which allows only when actor.equals(target) (line 20)." | |
| }, | |
| { | |
| "role": "Policy provider", | |
| "status": "present", | |
| "symbol": "pkAuthAdminAuthorizer", | |
| "file": "pk-auth-spring-boot-starter/src/main/java/com/codeheadsystems/pkauth/spring/autoconfigure/PkAuthAdminAutoConfiguration.java", | |
| "lines": "35", | |
| "notes": "The @Bean that supplies the applied AdminAuthorizer policy (subjectScoped by default, overridable by hosts) and is injected into DefaultAdminService.Config (line 61), held in the authorizer field used by authorize (DefaultAdminService.java:290). Caveat: the policy is a hard-coded ownership rule, no per-principal privilege store." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "delete", | |
| "file": "pk-auth-persistence-jdbi/src/main/java/com/codeheadsystems/pkauth/persistence/jdbi/JdbiCredentialRepository.java", | |
| "lines": "179", | |
| "notes": "After the authorisation check passes, deleteCredential calls credentialRepository.delete(target, credentialId) (DefaultAdminService.java:157); the production JDBI implementation deletes the passkey credential. The authentication half guarding it is JWT-based, not session-based; the Spring demo uses the testkit in-memory repository instead." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.34 kB
- Xet hash:
- baf835f813f0ef8c14c683151f963474e38a824650dce8b17ad0e1ce838f6b58
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.