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 TypeMethodDescription<T,S> @Nullable io.micronaut.security.authentication.Authentication fetchAuthentication(io.grpc.ServerCall<T, S> serverCall, io.grpc.Metadata metadata) Attempts to read anAuthenticationfrom 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 anAuthenticationfrom the current server call.- Type Parameters:
T- The request typeS- The response type- Parameters:
serverCall- The current gRPC callmetadata- The gRPC metadata- Returns:
- The authentication when one is available
-