pub struct ProviderOptions {
pub provider: String,
pub client_id: String,
pub token_endpoint: String,
pub authorization_endpoint: Option<String>,
pub client_secret: Option<String>,
pub profile: Option<String>,
pub scopes: Vec<String>,
pub grant: Option<OAuthGrant>,
pub cache_dir: Option<String>,
pub storage: Option<Storage>,
pub file_layout: Option<FileLayout>,
pub auth: Option<AuthOptions>,
}Expand description
Provider-specific OAuth identity, endpoints, storage, and shared lifecycle options.
Fields§
§provider: StringStable provider identity used to isolate stored credentials.
client_id: StringOAuth application identifier.
token_endpoint: StringProvider’s token exchange endpoint.
Required browser authorization endpoint for authorization-code grants.
client_secret: Option<String>Secret for confidential clients; never returned in access-token results.
profile: Option<String>Optional namespace for multiple accounts under one provider.
scopes: Vec<String>Requested scopes, trimmed, sorted, and deduplicated before use.
grant: Option<OAuthGrant>Defaults to authorization code with PKCE when omitted.
cache_dir: Option<String>Override the provider-neutral credential directory.
storage: Option<Storage>Select a built-in store; omission uses file storage.
file_layout: Option<FileLayout>Select a shared cache file or independent credential files.
auth: Option<AuthOptions>Shared lifecycle configuration; omission uses AuthOptions::default().
Trait Implementations§
Source§impl Clone for ProviderOptions
impl Clone for ProviderOptions
Source§fn clone(&self) -> ProviderOptions
fn clone(&self) -> ProviderOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more