pub struct IdentityClaims {
pub sub: Uuid,
pub email: String,
pub ty: TokenType,
pub identity_nonce: String,
pub country: String,
}
Expand description
The information in the JWT when authenticating with an identity provider.
Fields§
§sub: Uuid
The ID of the user.
This value is unique to an email address per account. The user would get a different sub if they are removed and re-added to your Zero Trust organization, or if they log into a different organization.
email: String
The email address of the authenticated user, verified by the identity provider.
ty: TokenType
The type of Access token.
identity_nonce: String
A cache key used to get the user’s identity.
country: String
The country where the user authenticated from.
Trait Implementations§
Source§impl Clone for IdentityClaims
impl Clone for IdentityClaims
Source§fn clone(&self) -> IdentityClaims
fn clone(&self) -> IdentityClaims
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 IdentityClaims
impl Debug for IdentityClaims
Source§impl<'de> Deserialize<'de> for IdentityClaims
impl<'de> Deserialize<'de> for IdentityClaims
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 From<IdentityClaims> for Claims
impl From<IdentityClaims> for Claims
Source§fn from(value: IdentityClaims) -> Self
fn from(value: IdentityClaims) -> Self
Converts to this type from the input type.
Source§impl Hash for IdentityClaims
impl Hash for IdentityClaims
Source§impl PartialEq for IdentityClaims
impl PartialEq for IdentityClaims
Source§impl Serialize for IdentityClaims
impl Serialize for IdentityClaims
impl Eq for IdentityClaims
impl StructuralPartialEq for IdentityClaims
Auto Trait Implementations§
impl Freeze for IdentityClaims
impl RefUnwindSafe for IdentityClaims
impl Send for IdentityClaims
impl Sync for IdentityClaims
impl Unpin for IdentityClaims
impl UnwindSafe for IdentityClaims
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.