pub struct AuthnRequest {
pub id: String,
pub issue_instant: String,
pub issuer: String,
pub destination: String,
pub acs_url: String,
pub protocol_binding: SamlBinding,
pub name_id_format: NameIdFormat,
pub authn_context: Option<AuthnContextClass>,
pub force_authn: bool,
pub is_passive: bool,
}Expand description
SAML AuthnRequest
Fields§
§id: StringRequest ID
issue_instant: StringIssue instant (ISO 8601)
issuer: StringSP Entity ID
destination: StringDestination (IdP SSO URL)
acs_url: StringAssertion Consumer Service URL
protocol_binding: SamlBindingProtocol binding for response
name_id_format: NameIdFormatName ID policy format
authn_context: Option<AuthnContextClass>Requested authentication context
force_authn: boolForce re-authentication
is_passive: boolPassive authentication (no user interaction)
Implementations§
Source§impl AuthnRequest
impl AuthnRequest
Sourcepub fn new(config: &SamlConfig) -> Self
pub fn new(config: &SamlConfig) -> Self
Create a new AuthnRequest with generated ID
Sourcepub fn force_authn(self, force: bool) -> Self
pub fn force_authn(self, force: bool) -> Self
Set force re-authentication
Sourcepub fn is_passive(self, passive: bool) -> Self
pub fn is_passive(self, passive: bool) -> Self
Set passive authentication
Sourcepub fn to_redirect_url(&self, relay_state: Option<&str>) -> String
pub fn to_redirect_url(&self, relay_state: Option<&str>) -> String
Get the URL for HTTP Redirect binding (deflated and base64-encoded)
Trait Implementations§
Source§impl Clone for AuthnRequest
impl Clone for AuthnRequest
Source§fn clone(&self) -> AuthnRequest
fn clone(&self) -> AuthnRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 AuthnRequest
impl RefUnwindSafe for AuthnRequest
impl Send for AuthnRequest
impl Sync for AuthnRequest
impl Unpin for AuthnRequest
impl UnwindSafe for AuthnRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more