Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /verifiable_token_based_authentication /iFrugal_gateway.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client sends a bearer JWT to the gateway; callers are external. The Swagger UI oauth2Login redirect (SecurityAutoConfiguration.java:81) is framework-provided and not in-repo client code." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "securityWebFilterChain", | |
| "file": "gateway-starter/src/main/java/com/github/ifrugal/gateway/autoconfigure/SecurityAutoConfiguration.java", | |
| "lines": "47", | |
| "notes": "@Bean building the WebFlux SecurityWebFilterChain: anyExchange().authenticated() (line 74, admin paths line 57) and installs the framework bearer-token filter via oauth2ResourceServer(oauth2 -> oauth2.jwt(...)) at line 80; unauthenticated requests get 401 (line 108). Opt-in: requires gateway.security.enabled=true and gateway.security.oauth2.enabled=true (both default false)." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "external", | |
| "symbol": "decode", | |
| "file": "gateway-starter/src/main/java/com/github/ifrugal/gateway/autoconfigure/SecurityAutoConfiguration.java", | |
| "lines": "80", | |
| "notes": "Reached from the Enforcer (SecurityAutoConfiguration.java:80, oauth2ResourceServer().jwt(Customizer.withDefaults())): Spring Security's JwtReactiveAuthenticationManager calls ReactiveJwtDecoder.decode (Boot auto-configured NimbusReactiveJwtDecoder), which verifies signature and exp/nbf and returns the Jwt principal. No in-repo verifier." | |
| }, | |
| { | |
| "role": "Key manager", | |
| "status": "external", | |
| "symbol": "jwt", | |
| "file": "gateway-starter/src/main/java/com/github/ifrugal/gateway/autoconfigure/SecurityAutoConfiguration.java", | |
| "lines": "80", | |
| "notes": "Called by the Verifier (NimbusReactiveJwtDecoder) activated at SecurityAutoConfiguration.java:80; verification keys come from the IdP JWKS (spring.security.oauth2.resourceserver.jwt.jwk-set-uri/issuer-uri, not present in repo). SecurityProperties.ProviderConfig.jwkSetUri (SecurityProperties.java:211) exists but is only documentation/OpenAPI-related and not wired to the decoder; no in-repo key-retrieval method exists." | |
| }, | |
| { | |
| "role": "Cryptographer", | |
| "status": "external", | |
| "symbol": "verify", | |
| "file": "gateway-starter/src/main/java/com/github/ifrugal/gateway/autoconfigure/SecurityAutoConfiguration.java", | |
| "lines": "80", | |
| "notes": "Invoked inside the Verifier (NimbusReactiveJwtDecoder.decode activated at SecurityAutoConfiguration.java:80): Nimbus JOSE JWSVerifier.verify checks the JWS signature with the JWKS key. Framework-internal, no in-repo call." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "getFromCache", | |
| "file": "gateway-core/src/main/java/com/github/ifrugal/gateway/core/controller/CacheController.java", | |
| "lines": "31", | |
| "notes": "Admin endpoint /gateway/cache/{key} in CacheController, explicitly required authenticated by the Enforcer (SecurityAutoConfiguration.java:57); runs only after the JWT is accepted. Other guarded handlers: ConmanAdminController (/conman/admin/**) and proxied gateway routes; JwtClaimsToHeadersWebFilter.filter (JwtClaimsToHeadersWebFilter.java:81) forwards principal claims as headers to downstream services." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.39 kB
- Xet hash:
- 42583e03436f7dc2354223c9692c125540340a4a319fcca3632360cd79a9b408
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.