pub struct IdpMetadataConfig {
pub name_id_format: Vec<NameIdFormat>,
pub single_sign_on_service: Vec<SsoEndpoint>,
pub single_logout_service: Vec<SloEndpoint>,
pub elements_order: Option<Vec<String>>,
}Expand description
Local IdP metadata inputs used by typed configuration.
Fields§
§name_id_format: Vec<NameIdFormat><NameIDFormat> values advertised by the IdP.
single_sign_on_service: Vec<SsoEndpoint>SingleSignOnService endpoints.
single_logout_service: Vec<SloEndpoint>SingleLogoutService endpoints.
elements_order: Option<Vec<String>>Element ordering profile for generated metadata.
Implementations§
Source§impl IdpMetadataConfig
impl IdpMetadataConfig
Sourcepub fn new(single_sign_on_service: Vec<SsoEndpoint>) -> Self
pub fn new(single_sign_on_service: Vec<SsoEndpoint>) -> Self
Create IdP metadata input with required SSO endpoints visible at the call site.
This constructor does not validate the endpoint list. Use
Self::try_new for caller-provided endpoint collections.
Sourcepub fn try_new(
single_sign_on_service: Vec<SsoEndpoint>,
) -> Result<Self, SamlError>
pub fn try_new( single_sign_on_service: Vec<SsoEndpoint>, ) -> Result<Self, SamlError>
Validate and create IdP metadata input.
§Errors
Returns SamlError::MissingMetadata when no SSO endpoint is supplied.
Trait Implementations§
Source§impl Clone for IdpMetadataConfig
impl Clone for IdpMetadataConfig
Source§fn clone(&self) -> IdpMetadataConfig
fn clone(&self) -> IdpMetadataConfig
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 moreSource§impl Debug for IdpMetadataConfig
impl Debug for IdpMetadataConfig
impl Eq for IdpMetadataConfig
Source§impl PartialEq for IdpMetadataConfig
impl PartialEq for IdpMetadataConfig
impl StructuralPartialEq for IdpMetadataConfig
Auto Trait Implementations§
impl Freeze for IdpMetadataConfig
impl RefUnwindSafe for IdpMetadataConfig
impl Send for IdpMetadataConfig
impl Sync for IdpMetadataConfig
impl Unpin for IdpMetadataConfig
impl UnsafeUnpin for IdpMetadataConfig
impl UnwindSafe for IdpMetadataConfig
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