Package io.deephaven.auth.codegen.impl
Interface ConfigServiceAuthWiring
- All Superinterfaces:
ServiceAuthWiring<ConfigServiceGrpc.ConfigServiceImplBase>
- All Known Implementing Classes:
ConfigServiceAuthWiring.AllowAll
,ConfigServiceAuthWiring.DenyAll
,ConfigServiceAuthWiring.TestUseOnly
public interface ConfigServiceAuthWiring
extends ServiceAuthWiring<ConfigServiceGrpc.ConfigServiceImplBase>
This interface provides type-safe authorization hooks for ConfigServiceGrpc.
-
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
onMessageReceivedGetAuthenticationConstants
(AuthContext authContext, AuthenticationConstantsRequest request) Authorize a request to GetAuthenticationConstants.void
onMessageReceivedGetConfigurationConstants
(AuthContext authContext, ConfigurationConstantsRequest request) Authorize a request to GetConfigurationConstants.
-
Method Details
-
intercept
Wrap the real implementation with authorization checks.- Specified by:
intercept
in interfaceServiceAuthWiring<ConfigServiceGrpc.ConfigServiceImplBase>
- Parameters:
delegate
- the real service implementation- Returns:
- the wrapped service implementation
-
onMessageReceivedGetAuthenticationConstants
void onMessageReceivedGetAuthenticationConstants(AuthContext authContext, AuthenticationConstantsRequest request) Authorize a request to GetAuthenticationConstants.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke GetAuthenticationConstants
-
onMessageReceivedGetConfigurationConstants
void onMessageReceivedGetConfigurationConstants(AuthContext authContext, ConfigurationConstantsRequest request) Authorize a request to GetConfigurationConstants.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke GetConfigurationConstants
-