Expand description
Request authentication for gRPC channels.
A tonic interceptor that injects a bearer token into request metadata, plus
intercepted which wraps a Channel with a freshly-resolved token for
a single call. The token itself comes from crate::Auth (static or a
dynamic crate::TokenSource).
Structs§
- Auth
Interceptor - Injects an
authorization: Bearer <token>header when a token is present.
Functions§
- intercepted
- Wrap
channelwith a fresh bearer token resolved fromauth, ready to back a generated gRPC client for one call.
Type Aliases§
- Intercepted
- A gRPC channel wrapped with a bearer-token interceptor.