pub struct SSOAuth { /* private fields */ }
Implementations§
source§impl SSOAuth
impl SSOAuth
sourcepub async fn try_login(self) -> Result<AuthResponse, SFError>
pub async fn try_login(self) -> Result<AuthResponse, SFError>
Tries to login. If the user has successfully authenticated via the auth_url, this will return the normal SFAccount. Otherwise, this will return the existing Auth for you to reattempt the login after a few seconds
sourcepub async fn new(provider: SSOProvider) -> Result<Self, SFError>
pub async fn new(provider: SSOProvider) -> Result<Self, SFError>
Instantiates a new attempt to login through a SSO provider. A user then has to interact with the auth_url this returns to validate the login. Afterwards you can login and transform this into a normal SFAccount
sourcepub async fn new_with_options(
provider: SSOProvider,
options: ConnectionOptions
) -> Result<Self, SFError>
pub async fn new_with_options( provider: SSOProvider, options: ConnectionOptions ) -> Result<Self, SFError>
The same as new(), but with optional connection options
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SSOAuth
impl !RefUnwindSafe for SSOAuth
impl Send for SSOAuth
impl Sync for SSOAuth
impl Unpin for SSOAuth
impl !UnwindSafe for SSOAuth
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