Struct saml_rs::AuthnRequestParser
source · [−]pub struct AuthnRequestParser {
pub relay_state: Option<String>,
pub issue_instant: Option<DateTime<Utc>>,
pub consumer_service_url: Option<String>,
pub issuer: Option<String>,
pub version: String,
pub issuer_state: i8,
pub destination: Option<String>,
pub sigalg: Option<String>,
pub signature: Option<String>,
}
Expand description
Used to pull apart a SAML AuthN Request and build a AuthnRequest
Fields
relay_state: Option<String>
Request ID / RelayState as provided by the SP
issue_instant: Option<DateTime<Utc>>
AuthN request issue time, generated by the SP - or shoved in by the IdP when parsing if missing
consumer_service_url: Option<String>
Consumer URL - where the SP wants you to send responses to
issuer: Option<String>
Issuer of the request - used for matching to the SP-provided metadata.
This is a nested element inside a <saml:Issuer xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
version: String
This better be 2.0!
issuer_state: i8
Internal state id for the issuer
destination: Option<String>
Destination…
sigalg: Option<String>
Signature algorithm, if the request is signed
signature: Option<String>
Signature algorithm, if the request is signed
We leave this as the string while returning from the parser, so the AuthnRequest can verify it.
Implementations
sourceimpl AuthnRequestParser
impl AuthnRequestParser
sourcepub fn new() -> Self
pub fn new() -> Self
Generate a new AuthnRequestParser
Trait Implementations
sourceimpl Debug for AuthnRequestParser
impl Debug for AuthnRequestParser
sourceimpl Default for AuthnRequestParser
impl Default for AuthnRequestParser
sourcefn default() -> AuthnRequestParser
fn default() -> AuthnRequestParser
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AuthnRequestParser
impl Send for AuthnRequestParser
impl Sync for AuthnRequestParser
impl Unpin for AuthnRequestParser
impl UnwindSafe for AuthnRequestParser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more