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
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
Nested 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.ServerServiceDefinition
Wrap the real implementation with authorization checks.void
onMessageReceivedListFields
(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:
intercept
in 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
-