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.
  • Method Details

    • intercept

      default io.grpc.ServerServiceDefinition intercept(ConfigServiceGrpc.ConfigServiceImplBase delegate)
      Wrap the real implementation with authorization checks.
      Specified by:
      intercept in interface ServiceAuthWiring<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 request
      request - 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 request
      request - the request to authorize
      Throws:
      io.grpc.StatusRuntimeException - if the user is not authorized to invoke GetConfigurationConstants