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

Generate a new AuthnRequestParser

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.