pub struct ProviderConfig {
pub provider_type: ProviderType,
pub default_scopes: Vec<String>,
pub refresh_behavior: RefreshBehavior,
pub userinfo_endpoint: Option<String>,
pub additional_params: HashMap<String, String>,
}Expand description
Provider-specific configuration for handling OAuth quirks
Fields§
§provider_type: ProviderTypeProvider type (Google, Microsoft, GitHub, etc.)
default_scopes: Vec<String>Custom scopes required by provider
refresh_behavior: RefreshBehaviorProvider-specific token refresh behavior
userinfo_endpoint: Option<String>Custom userinfo endpoint
additional_params: HashMap<String, String>Additional provider-specific parameters
Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Source§fn clone(&self) -> ProviderConfig
fn clone(&self) -> ProviderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnwindSafe for ProviderConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more