pub struct AuthenticatedInfo {
pub application_credential: Option<ApplicationCredential>,
pub audit_ids: Vec<String>,
pub expires_at: Option<DateTime<Utc>>,
pub idp_id: Option<String>,
pub methods: Vec<String>,
pub protocol_id: Option<String>,
pub token_restriction_id: Option<String>,
pub user: Option<UserResponse>,
pub user_domain: Option<Domain>,
pub user_groups: Vec<Group>,
pub user_id: String,
}Expand description
Information about successful authentication.
Fields§
§application_credential: Option<ApplicationCredential>Application credential.
audit_ids: Vec<String>Audit IDs.
expires_at: Option<DateTime<Utc>>Authentication expiration.
idp_id: Option<String>Federated IDP id.
methods: Vec<String>Authentication methods.
protocol_id: Option<String>Federated protocol id.
token_restriction_id: Option<String>Token restriction.
user: Option<UserResponse>Resolved user object.
user_domain: Option<Domain>Resolved user domain information.
user_groups: Vec<Group>Resolved user object.
user_id: StringUser id.
Implementations§
Source§impl AuthenticatedInfo
impl AuthenticatedInfo
pub fn builder() -> AuthenticatedInfoBuilder
Sourcepub fn validate(&self) -> Result<(), AuthenticationError>
pub fn validate(&self) -> Result<(), AuthenticationError>
Validate the authentication information:
- User attribute must be set
- User must be enabled
- User object id must match user_id
Trait Implementations§
Source§impl Clone for AuthenticatedInfo
impl Clone for AuthenticatedInfo
Source§fn clone(&self) -> AuthenticatedInfo
fn clone(&self) -> AuthenticatedInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthenticatedInfo
impl Debug for AuthenticatedInfo
Source§impl Default for AuthenticatedInfo
impl Default for AuthenticatedInfo
Source§fn default() -> AuthenticatedInfo
fn default() -> AuthenticatedInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthenticatedInfo
impl<'de> Deserialize<'de> for AuthenticatedInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 AuthenticatedInfo
impl PartialEq for AuthenticatedInfo
Source§impl Serialize for AuthenticatedInfo
impl Serialize for AuthenticatedInfo
impl StructuralPartialEq for AuthenticatedInfo
Auto Trait Implementations§
impl Freeze for AuthenticatedInfo
impl RefUnwindSafe for AuthenticatedInfo
impl Send for AuthenticatedInfo
impl Sync for AuthenticatedInfo
impl Unpin for AuthenticatedInfo
impl UnsafeUnpin for AuthenticatedInfo
impl UnwindSafe for AuthenticatedInfo
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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