Crate middle

Source

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

error

Structs§

BearerTokenAuthorizer
Create a simple Authorizer that attaches a given token to any request a client sends. The token is attached with the Bearer auth-scheme.
ClientCredentialAuthorizer
Authenticate with an OAuth2 server using client credentials.
ClientCredentialAuthorizerBuilder
Builder for ClientCredentialAuthorizer.
HttpClient
Wrapper around reqwest::Client that automatically adds the authorization header, while keeping it up-to-date using an Authorizer.
RefreshTask

Traits§

Authorizer
Main trait of this crate.

Type Aliases§

BasicClientCredentialAuthorizer
Specialization of ClientCredentialAuthorizer suitable for most use cases.
BasicClientCredentialAuthorizerBuilder
Specialization of ClientCredentialAuthorizer suitable for most use cases.