pub struct Provider { /* private fields */ }Expand description
One provider an account signs in with; its name is the stored identity’s and the form’s.
Implementations§
Source§impl Provider
impl Provider
pub fn openid( name: &str, label: &str, issuer: &str, authorization_url: &str, token_url: &str, client: (String, Secret<String>), ) -> Result<Self>
pub fn google(client: (String, Secret<String>)) -> Result<Self>
Sourcepub fn microsoft(tenant: &str, client: (String, Secret<String>)) -> Result<Self>
pub fn microsoft(tenant: &str, client: (String, Secret<String>)) -> Result<Self>
Work, school and personal Microsoft accounts of one tenant (common for any).
Sourcepub fn github(client: (String, Secret<String>)) -> Result<Self>
pub fn github(client: (String, Secret<String>)) -> Result<Self>
GitHub speaks plain OAuth 2, so the account and its verified addresses are asked of its API.
pub fn name(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Provider
impl Forget for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnsafeUnpin for Provider
impl UnwindSafe for Provider
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