pub struct AuthnRequest {
    pub relay_state: String,
    pub issue_instant: DateTime<Utc>,
    pub consumer_service_url: String,
    pub issuer: String,
    pub version: String,
    pub destination: String,
    pub sigalg: Option<String>,
    pub signature: Option<String>,
}
Expand description

Stores the values one would expect in an AuthN Request

Fields

relay_state: String

RelayState provided as part of the request

issue_instant: DateTime<Utc>

AuthN request issue time, generated by the SP - or shoved in by the IdP when parsing if missing

consumer_service_url: String

Consumer URL - where the SP wants you to send responses to

issuer: 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!

destination: String

Destination… TODO: work out if/why this is different to the ACS

sigalg: Option<String>

Signature algorithm, if the request is signed

signature: Option<String>

Signature, if signed

Implementations

Allows one to turn a AuthnRequestParser into a Request object

TODO: doctest for AuthnRequest::From

Return the issue instant in the required form

Trait Implementations

Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. 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.