Struct saml_rs::AuthnRequest
source · [−]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
sourceimpl AuthnRequest
impl AuthnRequest
sourcepub fn from(parser: AuthnRequestParser) -> Self
pub fn from(parser: AuthnRequestParser) -> Self
Allows one to turn a AuthnRequestParser into a Request object
TODO: doctest for AuthnRequest::From
sourcepub fn issue_instant_string(&self) -> String
pub fn issue_instant_string(&self) -> String
Return the issue instant in the required form
Trait Implementations
sourceimpl Debug for AuthnRequest
impl Debug for AuthnRequest
sourceimpl Serialize for AuthnRequest
impl Serialize for AuthnRequest
Auto Trait Implementations
impl RefUnwindSafe for AuthnRequest
impl Send for AuthnRequest
impl Sync for AuthnRequest
impl Unpin for AuthnRequest
impl UnwindSafe for AuthnRequest
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