pub struct ServiceProvider {
    pub entity_id: String,
    pub authn_requests_signed: bool,
    pub want_assertions_signed: bool,
    pub x509_certificate: Option<X509>,
    pub services: Vec<ServiceBinding>,
    pub protocol_support_enumeration: Option<String>,
    pub nameid_format: NameIdFormat,
}
Expand description

SP metadata object, used for being able to find one when an AuthN request comes in (or IdP-initiated, eventually, maymbe?)

Fields

entity_id: String

EntityID

authn_requests_signed: bool

Will this SP send signed requests? If so, we’ll reject ones that aren’t.

want_assertions_signed: bool

Does this SP expect signed assertions?

x509_certificate: Option<X509>

The signing (public) certificate for the SP

services: Vec<ServiceBinding>

SP Services

protocol_support_enumeration: Option<String>

TODO protocol_support_enumeration? what’s this?

nameid_format: NameIdFormat

NameIdFormat - how we should identify the user

Implementations

Generate a test generic ServiceProvider with nonsense values for testing

Used for handling the attributes of services in the tags of an SP Metadata XML file

Types tested (poorly):

  • AssertionConsumerService
  • SingleLogoutService

return the first AssertionConsumerService we find

Let’s parse some attributes!

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. 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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.