Interface GrpcServerAuthenticationFetcher

All Superinterfaces:
io.micronaut.core.order.Ordered
All Known Implementing Classes:
JwtGrpcServerAuthenticationFetcher

public interface GrpcServerAuthenticationFetcher extends io.micronaut.core.order.Ordered
Reads an Authentication from a gRPC server call.
Since:
5.0.0
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    <T,S> @Nullable io.micronaut.security.authentication.Authentication
    fetchAuthentication(io.grpc.ServerCall<T,S> serverCall, io.grpc.Metadata metadata)
    Attempts to read an Authentication from the current server call.

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Method Details

    • fetchAuthentication

      @Nullable <T,S> @Nullable io.micronaut.security.authentication.Authentication fetchAuthentication(io.grpc.ServerCall<T,S> serverCall, io.grpc.Metadata metadata)
      Attempts to read an Authentication from the current server call.
      Type Parameters:
      T - The request type
      S - The response type
      Parameters:
      serverCall - The current gRPC call
      metadata - The gRPC metadata
      Returns:
      The authentication when one is available