Skip to main content

Module interceptor

Module interceptor 

Source
Expand description

ClientJwtInterceptor — outbound tonic interceptor that attaches a JWT Authorization: Bearer header to every request by calling a TokenProvider.

This is the only type defined in this module. It is used internally by the from_endpoint_with_provider constructor that #[derive(GrpcClient)] generates on every client struct; consumers do not construct it directly.

Structs§

ClientJwtInterceptor
Generic interceptor that calls any TokenProvider and attaches the result as a Bearer token on every outbound gRPC request.