pub struct ProviderConfig {
pub id: String,
pub kind: ProviderKind,
pub sandbox: bool,
pub client_id_env: Option<String>,
pub client_secret_env: Option<String>,
pub scopes: Vec<String>,
pub authorize_url: Option<String>,
pub token_url: Option<String>,
pub userinfo_url: Option<String>,
pub subject: Option<String>,
pub email: Option<String>,
pub loa: u8,
}Fields§
§id: StringStable id referenced by rules[*].identity.provider in shieldset.yaml.
kind: ProviderKind§sandbox: bool§client_id_env: Option<String>Name of the env var holding the client_id.
client_secret_env: Option<String>Name of the env var holding the client_secret.
scopes: Vec<String>OAuth scopes to request. Default is ["openid"].
Override the authorize endpoint (advanced; default depends on
sandbox).
token_url: Option<String>§userinfo_url: Option<String>§subject: Option<String>Mock-only: synthetic subject id the provider returns on every verification.
email: Option<String>Mock-only: synthetic email returned on verification.
loa: u8Mock-only: LOA claimed by the synthetic verification.
Implementations§
Source§impl ProviderConfig
impl ProviderConfig
pub fn default_mock() -> Self
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderConfig
impl Debug for ProviderConfig
Source§impl<'de> Deserialize<'de> for ProviderConfig
impl<'de> Deserialize<'de> for ProviderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnsafeUnpin 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