pub struct ParsedAuthnRequest {
pub id: String,
pub issuer: String,
pub issue_instant: SystemTime,
pub destination: Option<String>,
pub assertion_consumer_service: SsoResponseEndpoint,
pub protocol_binding: Option<SsoResponseBinding>,
pub assertion_consumer_service_selection: AcsSelection,
pub force_authn: bool,
pub is_passive: bool,
pub requested_name_id_format: Option<NameIdFormat>,
pub requested_authn_context: Option<RequestedAuthnContext>,
pub relay_state: Option<String>,
}Expand description
The validated AuthnRequest the IdP role hands back to its caller. Mirrors
RFC-004 §2 ParsedAuthnRequest verbatim.
Fields§
§id: String§issuer: String§issue_instant: SystemTime§destination: Option<String>§assertion_consumer_service: SsoResponseEndpointResolved ACS endpoint — always points at a registered SP endpoint (never the SP-supplied URL). RFC-004 §2.1 step 7 (echo-prevention).
protocol_binding: Option<SsoResponseBinding>What binding the SP requested for the Response. Parser already
narrowed to POST/Artifact (illegal Redirect/SOAP rejected at parse
time). None means the AuthnRequest carried no @ProtocolBinding.
assertion_consumer_service_selection: AcsSelectionRaw selection from the request, kept for logging.
force_authn: bool§is_passive: bool§requested_name_id_format: Option<NameIdFormat>§requested_authn_context: Option<RequestedAuthnContext>§relay_state: Option<String>RelayState forwarded from the binding layer (Redirect query string, or
POST form). Optional. Set by the caller (sp/idp role), not here —
validate_authn_request initializes this to None; the caller
overwrites it after a successful validate.
Trait Implementations§
Source§impl Clone for ParsedAuthnRequest
impl Clone for ParsedAuthnRequest
Source§fn clone(&self) -> ParsedAuthnRequest
fn clone(&self) -> ParsedAuthnRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedAuthnRequest
impl RefUnwindSafe for ParsedAuthnRequest
impl Send for ParsedAuthnRequest
impl Sync for ParsedAuthnRequest
impl Unpin for ParsedAuthnRequest
impl UnsafeUnpin for ParsedAuthnRequest
impl UnwindSafe for ParsedAuthnRequest
Blanket Implementations§
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