pub enum KnownProvider {
Google {
client_id: String,
client_secret: String,
allowed_domain: Option<String>,
},
Microsoft {
client_id: String,
client_secret: String,
tenant_id: String,
},
Okta {
client_id: String,
client_secret: String,
domain: String,
auth_server_id: Option<String>,
},
Generic {
name: String,
client_id: String,
client_secret: String,
issuer_url: String,
},
}Expand description
Supported OAuth2 providers with pre-configured settings
Variants§
Google Workspace
Fields
Microsoft
Microsoft Entra ID (Azure AD)
Fields
Okta
Okta
Fields
Generic
Generic OIDC provider
Implementations§
Source§impl KnownProvider
impl KnownProvider
Sourcepub fn issuer_url(&self) -> String
pub fn issuer_url(&self) -> String
Get the issuer URL for this provider
Sourcepub fn client_secret(&self) -> &str
pub fn client_secret(&self) -> &str
Get the client secret
Sourcepub fn provider_type(&self) -> &'static str
pub fn provider_type(&self) -> &'static str
Get provider type name
Trait Implementations§
Source§impl Clone for KnownProvider
impl Clone for KnownProvider
Source§fn clone(&self) -> KnownProvider
fn clone(&self) -> KnownProvider
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 KnownProvider
impl RefUnwindSafe for KnownProvider
impl Send for KnownProvider
impl Sync for KnownProvider
impl Unpin for KnownProvider
impl UnwindSafe for KnownProvider
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