Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /verifiable_token_based_authentication /ir-msob_jima-security.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo gRPC client attaches a bearer token to calls reaching AuthenticatingServerInterceptor; the OAuth2 client configs (grpc/.../oauth2/GrpcAuth2ClientAutoConfiguration.java:17, rsocket RSocketOauth2RequesterBuilder) only obtain/send tokens for outgoing calls. The caller is outside the repo; tests not counted." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "interceptCall", | |
| "file": "grpc/grpc-autoconfigure/src/main/java/ir/msob/jima/security/grpc/autoconfigure/grpc/AuthenticatingServerInterceptor.java", | |
| "lines": "22", | |
| "notes": "interceptCall in AuthenticatingServerInterceptor (registered as bean at GrpcSecurityAutoConfiguration.java:13) reads the 'authorization' metadata, extracts the Bearer token, calls authenticationReader.authenticate(token) at line 39 and throws Status.UNAUTHENTICATED on failure, otherwise sets SecurityContext and starts the call. Caveat: requests without a token are passed through unauthenticated (line 33-34)." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "present", | |
| "symbol": "authenticationReader", | |
| "file": "grpc/grpc-autoconfigure/src/main/java/ir/msob/jima/security/grpc/autoconfigure/jwt/GrpcAuthenticationAutoConfiguration.java", | |
| "lines": "44", | |
| "notes": "Reached from the Enforcer's call authenticationReader.authenticate(token) at AuthenticatingServerInterceptor.java:39; the AuthenticationReader is an anonymous lambda returned by the @Bean method authenticationReader (innermost named unit). It decodes/validates the JWT via jwtDecoder.decode (line 55), converts roles with JwtRoleConverter and returns a JwtAuthenticationToken principal, rethrowing JwtException on invalid tokens." | |
| }, | |
| { | |
| "role": "Key manager", | |
| "status": "external", | |
| "symbol": "fromIssuerLocation", | |
| "file": "security/security-autoconfigure/src/main/java/ir/msob/jima/security/autoconfigure/jwt/JwtConfiguration.java", | |
| "lines": "40", | |
| "notes": "The JwtDecoder injected into the Verifier (GrpcAuthenticationAutoConfiguration.java:44) is built by the jwtDecoder bean (JwtConfiguration.java:38) via Spring Security JwtDecoders.fromIssuerLocation(issuerUri), with issuerUri from spring.security.oauth2.resource-server.jwt.issuer-uri (line 29); the resulting NimbusJwtDecoder fetches the verification keys from the IdP's JWKS. No in-repo key handling." | |
| }, | |
| { | |
| "role": "Cryptographer", | |
| "status": "external", | |
| "symbol": "decode", | |
| "file": "grpc/grpc-autoconfigure/src/main/java/ir/msob/jima/security/grpc/autoconfigure/jwt/GrpcAuthenticationAutoConfiguration.java", | |
| "lines": "55", | |
| "notes": "Called by the Verifier lambda (authenticationReader, line 44): jwtDecoder.decode(token) on Spring Security's NimbusJwtDecoder (built at JwtConfiguration.java:39-40) verifies the JWS signature with the JWKS keys and validates the claims (exp, issuer)." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Library/starter repo: after interceptCall (AuthenticatingServerInterceptor.java:50) the call goes to serverCallHandler.startCall of the consuming application's gRPC services; no in-repo protected business handler exists (only test/testing helper modules)." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.48 kB
- Xet hash:
- a05c23948548c119f9d925df267432623b503f5a7bf62c5bccf369f752d5ca8c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.