Skip to main content

Crate saml2_sp

Crate saml2_sp 

Source
Expand description

SAML 2.0 service provider and Shared Signals poll receiver.

Structs§

Config
Configuration with its files read and its defaults filled in. signals is present only when CAEP and RISC are off. None means on.
IdpMetadata
The identity provider material this service provider needs.
KeyMaterial
A self-signed certificate and the RSA key it names.
LoginOptions
How an AuthnRequest is built. A missing relay state is omitted.
LoginRequest
The signed AuthnRequest, as a redirect or a POST form.
MemoryReplayCache
Remembers which assertions have been accepted.
MemorySessionIndex
Which local sessions belong to which person.
ReceiverOptions
Configures a Shared Signals poll receiver.
SamlError
Every failure this crate reports. Display is the message alone.
SamlLogin
A person the assertion consumer accepted.
SamlStatus
A non-success status an identity provider answered with.
ServiceProvider
The SAML 2.0 service provider.
SessionRecord
One local session the receiver can end.
SignalEvent
One event inside a Security Event Token.
SignalsReceiver
Polls one RFC 8936 stream of CAEP and RISC events.
TlsOptions
Trust and client certificate for the back channel.

Enums§

AcsBody
What acs reads from a POST body.

Constants§

DEFAULT_SUBJECT_ATTRIBUTE
The SAML attribute a Shared Signals subject is taken from when none is named.

Traits§

Logger
Operational messages from the receiver.

Functions§

caep_events
Every CAEP event type, in declaration order.
create_self_signed_key_pair
An RSA key and a self-signed certificate. bits is 2048, 3072, or 4096.
default_ending_events
Events that end the local sessions they name.
default_events_requested
The receiver’s default subscription.
event
The URI of a named CAEP, RISC, or SSF event. Unknown names are empty.
metadata_document
This service provider’s metadata, without contacting the identity provider.
post_form_html
The browser form that carries an HTTP-POST SAML message. Fields are emitted in the order given.
read_idp_metadata
Reads an identity provider’s metadata document.
resolve_config
Reads files named by the configuration and fills in defaults.
risc_events
Every RISC event type, in declaration order.
subject_of
Who an event’s sub_id names: person, email, and idp_session.
tracked_from
The index record for a SAML login.
verify_compact_jws
Checks a Security Event Token against the transmitter’s keys.