Skip to main content

Module auth

Module auth 

Source
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§

AuthInterceptor
Injects an authorization: Bearer <token> header when a token is present.

Functions§

intercepted
Wrap channel with a fresh bearer token resolved from auth, ready to back a generated gRPC client for one call.

Type Aliases§

Intercepted
A gRPC channel wrapped with a bearer-token interceptor.