pub trait OnePasswordSsoUi: Send + Sync {
// Required methods
fn perform_sso_login<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sso_login_url: &'life1 str,
redirect_to: &'life2 str,
) -> Pin<Box<dyn Future<Output = SsoLoginResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn begin_sso_enrollment<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Box<dyn SsoEnrollmentContext>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Callbacks that take the user through an SSO login.
Required Methods§
Sourcefn perform_sso_login<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sso_login_url: &'life1 str,
redirect_to: &'life2 str,
) -> Pin<Box<dyn Future<Output = SsoLoginResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn perform_sso_login<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
sso_login_url: &'life1 str,
redirect_to: &'life2 str,
) -> Pin<Box<dyn Future<Output = SsoLoginResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Opens sso_login_url, usually in a browser, and waits for the identity provider to
redirect to redirect_to.
Sourcefn begin_sso_enrollment<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Box<dyn SsoEnrollmentContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn begin_sso_enrollment<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Box<dyn SsoEnrollmentContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Shows the device enrollment UI, which the login then drives through the returned context. Called once per login: every import is a new device.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".