Skip to main content

OnePasswordSsoEnrollment

Trait OnePasswordSsoEnrollment 

Source
pub trait OnePasswordSsoEnrollment: Send + Sync {
    // Required methods
    fn cancelled<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_status<'life0, 'life1, 'async_trait>(
        &'life0 self,
        status: EnrollmentStatus,
        message: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn provide_verification_code<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = VerificationCodeResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn end_enrollment<'life0, 'async_trait>(
        &'life0 self,
        result: SsoEnrollmentResult,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A device enrollment in progress: the UI shows its stage, asks for the verification code, and lets the user cancel.

Required Methods§

Source

fn cancelled<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolves when the user cancels the enrollment. An implementation that cannot cancel never resolves.

Source

fn update_status<'life0, 'life1, 'async_trait>( &'life0 self, status: EnrollmentStatus, message: &'life1 str, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Shows the stage the enrollment has reached.

Source

fn provide_verification_code<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = VerificationCodeResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Asks for the verification code the approving device shows.

Source

fn end_enrollment<'life0, 'async_trait>( &'life0 self, result: SsoEnrollmentResult, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Closes the enrollment UI. Called exactly once when the enrollment ends, unless the login is dropped halfway.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§