pub type ReqwestBroker = Broker<ReqwestHttpClient, ReqwestTransportErrorMapper>;Expand description
Broker specialized for the crate’s default reqwest transport stack.
Aliased Type§
pub struct ReqwestBroker {
pub http_client: Arc<ReqwestHttpClient>,
pub transport_mapper: Arc<ReqwestTransportErrorMapper>,
pub store: Arc<dyn BrokerStore>,
pub descriptor: ProviderDescriptor,
pub strategy: Arc<dyn ProviderStrategy>,
pub client_id: String,
pub client_secret: Option<String>,
pub refresh_metrics: Arc<RefreshMetrics>,
/* private fields */
}Fields§
§http_client: Arc<ReqwestHttpClient>HTTP client wrapper used for every outbound provider request.
transport_mapper: Arc<ReqwestTransportErrorMapper>Mapper applied to transport-layer errors before surfacing them to callers.
store: Arc<dyn BrokerStore>Token store implementation that persists issued secrets.
descriptor: ProviderDescriptorProvider descriptor that defines OAuth endpoints and quirks.
strategy: Arc<dyn ProviderStrategy>Strategy responsible for provider-specific token request adjustments.
client_id: StringOAuth 2.0 client identifier used in every grant.
client_secret: Option<String>Optional client secret for confidential authentication methods.
refresh_metrics: Arc<RefreshMetrics>Shared metrics recorder for refresh flow outcomes.