pub struct RegistrationClient {
pub(crate) client: Client,
}Expand description
Client for initializing a user account.
Fields§
§client: ClientImplementations§
Source§impl RegistrationClient
impl RegistrationClient
Sourcepub fn seal_open_org_invite_data(
&self,
input: OpenOrgInvite,
) -> Result<SealedOpenOrgInvite, RegistrationError>
pub fn seal_open_org_invite_data( &self, input: OpenOrgInvite, ) -> Result<SealedOpenOrgInvite, RegistrationError>
Seals an OpenOrgInvite into a SealedOpenOrgInvite. The returned
sealed_data is safe to place on the verification-email link; the returned
high_entropy_secret must stay client-side.
Sourcepub fn unseal_open_org_invite_data(
&self,
sealed: SealedOpenOrgInvite,
) -> Result<OpenOrgInvite, RegistrationError>
pub fn unseal_open_org_invite_data( &self, sealed: SealedOpenOrgInvite, ) -> Result<OpenOrgInvite, RegistrationError>
Unseals a SealedOpenOrgInvite back into an OpenOrgInvite. Returns
RegistrationError::Crypto if the paired secret does not match the sealed payload or
the payload has been tampered with.
Source§impl RegistrationClient
impl RegistrationClient
Sourcepub async fn post_keys_for_jit_password_registration(
&self,
request: JitMasterPasswordRegistrationRequest,
) -> Result<JitMasterPasswordRegistrationResponse, RegistrationError>
pub async fn post_keys_for_jit_password_registration( &self, request: JitMasterPasswordRegistrationRequest, ) -> Result<JitMasterPasswordRegistrationResponse, RegistrationError>
Initializes a new cryptographic state for a user and posts it to the server; enrolls the user to master password unlock.
Source§impl RegistrationClient
impl RegistrationClient
Sourcepub async fn post_keys_for_key_connector_registration(
&self,
key_connector_url: String,
sso_org_identifier: String,
accept_organization_invite: Option<bool>,
) -> Result<KeyConnectorRegistrationResult, RegistrationError>
pub async fn post_keys_for_key_connector_registration( &self, key_connector_url: String, sso_org_identifier: String, accept_organization_invite: Option<bool>, ) -> Result<KeyConnectorRegistrationResult, RegistrationError>
Initializes a new cryptographic state for a user and posts it to the server; enrolls the user to key connector unlock.
accept_organization_invite controls whether the server moves the organization
membership from Invited to Accepted. Send false for open-invite links so the membership
stays Invited for later Admin Console checks. Defaults to true when not set. Only used
when the pm-34429-invite-link-auto-confirm flag is on.
Source§impl RegistrationClient
impl RegistrationClient
Sourcepub async fn post_keys_for_tde_registration(
&self,
request: TdeRegistrationRequest,
) -> Result<TdeRegistrationResponse, RegistrationError>
pub async fn post_keys_for_tde_registration( &self, request: TdeRegistrationRequest, ) -> Result<TdeRegistrationResponse, RegistrationError>
Initializes a new cryptographic state for a user and posts it to the server; enrolls in admin password reset and finally enrolls the user to TDE unlock.
Source§impl RegistrationClient
impl RegistrationClient
Sourcepub async fn post_keys_for_user_password_registration(
&self,
request: UserMasterPasswordRegistrationRequest,
) -> Result<UserMasterPasswordRegistrationResponse, RegistrationError>
pub async fn post_keys_for_user_password_registration( &self, request: UserMasterPasswordRegistrationRequest, ) -> Result<UserMasterPasswordRegistrationResponse, RegistrationError>
Initializes new password-based cryptographic state for a user and posts the state to the server
Trait Implementations§
Source§impl Clone for RegistrationClient
impl Clone for RegistrationClient
Source§fn clone(&self) -> RegistrationClient
fn clone(&self) -> RegistrationClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl From<RegistrationClient> for JsValue
impl From<RegistrationClient> for JsValue
Source§fn from(value: RegistrationClient) -> Self
fn from(value: RegistrationClient) -> Self
Source§impl FromWasm for RegistrationClient
Available on crate feature wasm only.
impl FromWasm for RegistrationClient
wasm only.Source§impl FromWasmAbi for RegistrationClient
impl FromWasmAbi for RegistrationClient
Source§impl IntoWasmAbi for RegistrationClient
impl IntoWasmAbi for RegistrationClient
Source§type Abi = WasmPtr<WasmRefCell<RegistrationClient>>
type Abi = WasmPtr<WasmRefCell<RegistrationClient>>
Source§impl LongRefFromWasmAbi for RegistrationClient
impl LongRefFromWasmAbi for RegistrationClient
Source§type Abi = WasmPtr<WasmRefCell<RegistrationClient>>
type Abi = WasmPtr<WasmRefCell<RegistrationClient>>
RefFromWasmAbi::AbiSource§type Anchor = RcRef<RegistrationClient>
type Anchor = RcRef<RegistrationClient>
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for RegistrationClient
impl RefFromWasmAbi for RegistrationClient
Source§type Abi = WasmPtr<WasmRefCell<RegistrationClient>>
type Abi = WasmPtr<WasmRefCell<RegistrationClient>>
Self are recovered from.Source§type Anchor = RcRef<RegistrationClient>
type Anchor = RcRef<RegistrationClient>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for RegistrationClient
impl RefMutFromWasmAbi for RegistrationClient
Source§type Abi = WasmPtr<WasmRefCell<RegistrationClient>>
type Abi = WasmPtr<WasmRefCell<RegistrationClient>>
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<RegistrationClient>
type Anchor = RcRefMut<RegistrationClient>
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for RegistrationClient
impl SupportsInstanceProperty for RegistrationClient
impl SupportsStaticProperty for RegistrationClient
Source§impl ToWasm for RegistrationClient
Available on crate feature wasm only.
impl ToWasm for RegistrationClient
wasm only.Source§impl TryFromJsValue for RegistrationClient
impl TryFromJsValue for RegistrationClient
Source§fn try_from_js_value_ref(value: &JsValue) -> Option<Self>
fn try_from_js_value_ref(value: &JsValue) -> Option<Self>
Source§const NULLABLE: bool = false
const NULLABLE: bool = false
Self accepts null as a distinct value space, as
Nullable<T> does. An enclosing Option then passes null through
instead of reading it as None, so Option<T> is itself nullable
exactly when T is not. JsValue does not set this: it accepts
null as one value among all of them, not as a distinct space, and
Option<JsValue> reads it as None like the ABI does. This is the
JS-value side of NullableFromWasmAbi, which claims null at the
ABI.Source§impl VectorFromWasmAbi for RegistrationClient
impl VectorFromWasmAbi for RegistrationClient
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[RegistrationClient]>
Source§impl VectorIntoWasmAbi for RegistrationClient
impl VectorIntoWasmAbi for RegistrationClient
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[RegistrationClient]>) -> Self::Abi
Source§impl WasmDescribe for RegistrationClient
impl WasmDescribe for RegistrationClient
Auto Trait Implementations§
impl !RefUnwindSafe for RegistrationClient
impl !UnwindSafe for RegistrationClient
impl Freeze for RegistrationClient
impl Send for RegistrationClient
impl Sync for RegistrationClient
impl Unpin for RegistrationClient
impl UnsafeUnpin for RegistrationClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
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> ⓘ
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> ⓘ
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 moreSource§impl<T> MaybeFromWasmAbi for Twhere
T: OptionFromWasmAbi,
impl<T> MaybeFromWasmAbi for Twhere
T: OptionFromWasmAbi,
Source§type MaybeAbi = <T as FromWasmAbi>::Abi
type MaybeAbi = <T as FromWasmAbi>::Abi
Option<Self>.Source§unsafe fn from_maybe_abi(js: <T as FromWasmAbi>::Abi) -> T
unsafe fn from_maybe_abi(js: <T as FromWasmAbi>::Abi) -> T
unsafe fn try_from_maybe_abi( js: <T as FromWasmAbi>::Abi, ) -> Result<T, &'static str>
Source§impl<T> MaybeIntoWasmAbi for Twhere
T: OptionIntoWasmAbi,
impl<T> MaybeIntoWasmAbi for Twhere
T: OptionIntoWasmAbi,
Source§type MaybeAbi = <T as IntoWasmAbi>::Abi
type MaybeAbi = <T as IntoWasmAbi>::Abi
Option<Self>.Source§fn into_maybe_abi(self) -> <T as IntoWasmAbi>::Abi
fn into_maybe_abi(self) -> <T as IntoWasmAbi>::Abi
Option<Self> ABI.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.