pub(crate) struct JsOnePasswordSsoUi(ThreadBoundRunner<RawJsOnePasswordSsoUi>);Expand description
Adapts the JavaScript single sign-on prompts to OnePasswordSsoUi, pinned to their thread
like JsOnePasswordTwoFactorUi.
Tuple Fields§
§0: ThreadBoundRunner<RawJsOnePasswordSsoUi>Implementations§
Source§impl JsOnePasswordSsoUi
impl JsOnePasswordSsoUi
pub(crate) fn new(ui: RawJsOnePasswordSsoUi) -> Self
Trait Implementations§
Source§impl SsoUi for JsOnePasswordSsoUi
impl SsoUi for JsOnePasswordSsoUi
Source§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 = OnePasswordSsoLoginResult> + 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 = OnePasswordSsoLoginResult> + 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.Source§fn begin_sso_enrollment<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Box<dyn OnePasswordSsoEnrollment>> + 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 OnePasswordSsoEnrollment>> + 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.
Auto Trait Implementations§
impl Freeze for JsOnePasswordSsoUi
impl RefUnwindSafe for JsOnePasswordSsoUi
impl Send for JsOnePasswordSsoUi
impl Sync for JsOnePasswordSsoUi
impl Unpin for JsOnePasswordSsoUi
impl UnsafeUnpin for JsOnePasswordSsoUi
impl UnwindSafe for JsOnePasswordSsoUi
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more