Package io.deephaven.auth.codegen.impl
Interface ApplicationServiceAuthWiring
- All Superinterfaces:
ServiceAuthWiring<ApplicationServiceGrpc.ApplicationServiceImplBase>
- All Known Implementing Classes:
ApplicationServiceAuthWiring.AllowAll,ApplicationServiceAuthWiring.DenyAll,ApplicationServiceAuthWiring.TestUseOnly
public interface ApplicationServiceAuthWiring
extends ServiceAuthWiring<ApplicationServiceGrpc.ApplicationServiceImplBase>
This interface provides type-safe authorization hooks for ApplicationServiceGrpc.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface io.deephaven.auth.ServiceAuthWiring
ServiceAuthWiring.AuthorizingServerCallHandler<ReqT,RespT>, ServiceAuthWiring.CallStartedCallback, ServiceAuthWiring.MessageReceivedCallback<T> -
Method Summary
Modifier and TypeMethodDescriptiondefault io.grpc.ServerServiceDefinitionWrap the real implementation with authorization checks.voidonMessageReceivedListFields(AuthContext authContext, ListFieldsRequest request) Authorize a request to ListFields.
-
Method Details
-
intercept
default io.grpc.ServerServiceDefinition intercept(ApplicationServiceGrpc.ApplicationServiceImplBase delegate) Wrap the real implementation with authorization checks.- Specified by:
interceptin interfaceServiceAuthWiring<ApplicationServiceGrpc.ApplicationServiceImplBase>- Parameters:
delegate- the real service implementation- Returns:
- the wrapped service implementation
-
onMessageReceivedListFields
Authorize a request to ListFields.- Parameters:
authContext- the authentication context of the requestrequest- the request to authorize- Throws:
io.grpc.StatusRuntimeException- if the user is not authorized to invoke ListFields
-