pub struct WsFedSecurityToken {
pub token_type: WsFedTokenType,
pub subject: String,
pub issuer: String,
pub audience: String,
pub issued_at: u64,
pub expires_at: u64,
pub claims: HashMap<String, Vec<String>>,
pub raw_assertion: String,
}Expand description
Validated security token extracted from a WS-Federation response.
Fields§
§token_type: WsFedTokenTypeToken type (SAML 1.1 or SAML 2.0).
subject: StringAuthenticated subject / name identifier.
issuer: StringToken issuer.
audience: StringToken audience (appliesTo / realm).
issued_at: u64When the token was issued.
expires_at: u64When the token expires.
claims: HashMap<String, Vec<String>>Claims / attributes from the token.
raw_assertion: StringRaw assertion XML (for downstream processing).
Trait Implementations§
Source§impl Clone for WsFedSecurityToken
impl Clone for WsFedSecurityToken
Source§impl Debug for WsFedSecurityToken
impl Debug for WsFedSecurityToken
Source§impl<'de> Deserialize<'de> for WsFedSecurityToken
impl<'de> Deserialize<'de> for WsFedSecurityToken
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
Auto Trait Implementations§
impl Forget for WsFedSecurityToken
impl Freeze for WsFedSecurityToken
impl RefUnwindSafe for WsFedSecurityToken
impl Send for WsFedSecurityToken
impl Sync for WsFedSecurityToken
impl Unpin for WsFedSecurityToken
impl UnsafeUnpin for WsFedSecurityToken
impl UnwindSafe for WsFedSecurityToken
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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