Common message fields
Core §3.2.1 and §3.2.2 define the fields that every SAML request and response
shares. The typed messages of every flow, at the identity provider and the
service provider, write and read the required fields and a subset of the
optional ones. Each flow record holds its own rules for ID, Version,
IssueInstant, Destination, Issuer, and Status.
Normative text is Core §3.2.1 (RequestAbstractType), §3.2.2
(StatusResponseType) with its Status elements, and §8.4, which defines the
consent identifiers.
Support
Section titled “Support”| Feature | Section | Sender | Recipient |
|---|---|---|---|
Consent on a request or a response |
Core §3.2.1, §3.2.2, §8.4 | Not supported | Not supported |
StatusDetail in a response |
Core §3.2.2.1, §3.2.2.4 | Not supported | Not supported |
A top-level StatusCode with at most one subordinate StatusCode |
Core §3.2.2.2 | Supported | Supported |
A StatusCode nested below the subordinate code |
Core §3.2.2.2 | Not supported | Not supported |
Caller extensions in Extensions on an AuthnRequest |
Core §3.2.1 | Supported | Not supported |
Caller extensions in Extensions on other requests and on responses |
Core §3.2.1, §3.2.2 | Not supported | Not supported |
Service provider: StartSso::extension
Section titled “Service provider: StartSso::extension”Code: src/sp/authn_request.rs, src/model/extension.rs
| Rule | Level | Section | Option |
|---|---|---|---|
Write caller extensions in Extensions on an AuthnRequest only |
Optional | Core §3.2.1 | StartSso::extension |
Single Logout writes its asynchronous marker in Extensions itself. See
asynchronous logout.
Library policies
Section titled “Library policies”Code: src/model/status.rs, src/xml/status.rs, src/xml/write.rs
| Policy | Reason | Section | Option |
|---|---|---|---|
Write no Consent attribute, so unspecified applies, and do not report a received one |
No profile of the flows saml-rs implements gives Consent a processing rule, and an application keeps its consent records outside the message. |
Core §3.2.1, §3.2.2, §8.4.1 | Always |
Write no StatusDetail, and do not report a received one |
No profile of the flows saml-rs implements defines its content, so a reader could not interpret it. | Core §3.2.2.1, §3.2.2.4 | Always |
Write and report a top-level StatusCode and at most one subordinate code. Ignore deeper codes in a received response |
Every OASIS-defined status code is a top-level or second-level code. | Core §3.2.2.2 | Always |