Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication and TLS configuration shared by Corium servers and clients.

v1 ships bearer-token auth behind a pluggable Authenticator trait and TLS via tonic/rustls (see docs/design/protocol.md).

Structs§

AuthInterceptor
Server interceptor enforcing an Authenticator.
StaticToken
Static-token authenticator; None accepts every request.
TokenInterceptor
Client interceptor attaching an optional bearer token to every request.

Traits§

Authenticator
Pluggable per-request authenticator.

Functions§

client_tls
Builds a client TLS config, optionally trusting a custom CA and overriding the domain name expected on the server certificate.
server_tls
Builds a server TLS config from PEM cert/key files.