LoginSuccessApiResponse

Struct LoginSuccessApiResponse 

Source
pub(crate) struct LoginSuccessApiResponse {
Show 17 fields pub access_token: String, pub expires_in: u64, pub scope: String, pub token_type: String, pub refresh_token: Option<String>, pub private_key: Option<String>, pub account_keys: Option<PrivateKeysResponseModel>, pub key: Option<String>, pub two_factor_token: Option<String>, pub kdf: Option<KdfType>, pub kdf_iterations: Option<i32>, pub kdf_memory: Option<i32>, pub kdf_parallelism: Option<i32>, pub force_password_reset: Option<bool>, pub api_use_key_connector: Option<bool>, pub user_decryption_options: Option<UserDecryptionOptionsApiResponse>, pub master_password_policy: Option<MasterPasswordPolicyResponseModel>,
}
Expand description

API response model for a successful login via the Identity API. OAuth 2.0 Successful Response RFC reference: https://datatracker.ietf.org/doc/html/rfc6749#section-5.1

Fields§

§access_token: String

The access token string.

§expires_in: u64

The duration in seconds until the token expires.

§scope: String

The scope of the access token. OAuth 2.0 RFC reference: https://datatracker.ietf.org/doc/html/rfc6749#section-3.3

§token_type: String

The type of the token. This will be “Bearer” for send access tokens. OAuth 2.0 RFC reference: https://datatracker.ietf.org/doc/html/rfc6749#section-7.1

§refresh_token: Option<String>

The optional refresh token string. This token can be used to obtain new access tokens when the current one expires.

§private_key: Option<String>

The user key wrapped user private key Deprecated in favor of the AccountKeys field but still present for backward compatibility. and we can’t expose AccountKeys in our LoginSuccessResponse until we get a PrivateKeysResponseModel SDK response model from KM with WASM / uniffi support. TODO: PM-30222 - clean up the comment about not being able to expose AccountKeys once we have a trait to convert PrivateKeysResponseModel to WrappedAccountCryptographicState

§account_keys: Option<PrivateKeysResponseModel>

The user’s asymmetric encryption keys and signature keys

§key: Option<String>
👎Deprecated: Use user_decryption_options.master_password_unlock instead

The master key wrapped user key.

§two_factor_token: Option<String>

Two factor remember me token to be used for future requests to bypass 2FA prompts for a limited time.

§kdf: Option<KdfType>
👎Deprecated: Use user_decryption_options.master_password_unlock instead

Master key derivation function type

§kdf_iterations: Option<i32>
👎Deprecated: Use user_decryption_options.master_password_unlock instead

Master key derivation function iterations

§kdf_memory: Option<i32>
👎Deprecated: Use user_decryption_options.master_password_unlock instead

Master key derivation function memory

§kdf_parallelism: Option<i32>
👎Deprecated: Use user_decryption_options.master_password_unlock instead

Master key derivation function parallelism

§force_password_reset: Option<bool>

Indicates whether an admin has reset the user’s master password, requiring them to set a new password upon next login.

§api_use_key_connector: Option<bool>

Indicates whether the user uses Key Connector and if the client should have a locally configured Key Connector URL in their environment. Note: This is currently only applicable for client_credential grant type logins and is only expected to be relevant for the CLI

§user_decryption_options: Option<UserDecryptionOptionsApiResponse>

The user’s decryption options for their vault.

§master_password_policy: Option<MasterPasswordPolicyResponseModel>

If the user is subject to an organization master password policy, this field contains the requirements of that policy.

Trait Implementations§

Source§

impl Debug for LoginSuccessApiResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for LoginSuccessApiResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for LoginSuccessApiResponse

Source§

fn eq(&self, other: &LoginSuccessApiResponse) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for LoginSuccessApiResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<LoginSuccessApiResponse> for LoginSuccessResponse

Source§

type Error = MasterPasswordError

The type returned in the event of a conversion error.
Source§

fn try_from(response: LoginSuccessApiResponse) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for LoginSuccessApiResponse

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CompatExt for T

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, UT> HandleAlloc<UT> for T
where T: Send + Sync,

§

fn new_handle(value: Arc<T>) -> Handle

Create a new handle for an Arc value Read more
§

unsafe fn clone_handle(handle: Handle) -> Handle

Clone a handle Read more
§

unsafe fn consume_handle(handle: Handle) -> Arc<T>

Consume a handle, getting back the initial Arc<> Read more
§

unsafe fn get_arc(handle: Handle) -> Arc<Self>

Get a clone of the Arc<> using a “borrowed” handle. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,