pub struct ProviderConfig {
pub id: String,
pub label: String,
pub kind: Kind,
pub client_id: String,
pub client_secret: ClientSecret,
pub scopes: String,
}Expand description
One configured provider.
Fields§
§id: Stringgithub, google or oidc: the URL segment and the button’s id.
label: String§kind: Kind§client_id: String§client_secret: ClientSecret§scopes: StringImplementations§
Source§impl ProviderConfig
impl ProviderConfig
pub fn github(client_id: &str, secret: ClientSecret) -> Self
pub fn github_at( client_id: &str, secret: ClientSecret, web: &str, api: &str, ) -> Self
pub fn google(client_id: &str, secret: ClientSecret) -> Self
pub fn oidc( issuer: &str, client_id: &str, secret: ClientSecret, name: Option<&str>, ) -> Self
Sourcepub fn identity_provider(&self) -> String
pub fn identity_provider(&self) -> String
The provider recorded on identities. A generic OIDC provider is
recorded with its issuer, so pointing ISB_OIDC_ISSUER elsewhere can
never sign anyone into an account by a colliding subject.
pub fn check(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderConfig
impl !UnwindSafe for ProviderConfig
impl Freeze for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnsafeUnpin 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