SAML 1.1 Assertions
SAML ''assertions'' contain ''statements'' that service providers use to make access control decisions. For instance, ''authentication statements'' assert to the service provider that the principal did indeed authenticate with the identity provider at a particular time using a particular method of authentication. Other information about the principal may be disclosed in an authentication statement. In the authentication statement below, for example, the e-mail address of the principal is asserted to the service provider:SAML 1.1 Protocols
A SAML ''protocol'' is a simple request-response protocol. A SAML requester sends a SAMLRequest
element to a responder:
Response
element to the requester:
SAML 1.1 Bindings
SAML 1.1 formally defines just one protocol '' binding'', the SAML SOAP binding. A compatible SAML 1.1 implementation must implement SAML over SOAP over HTTP (a synchronous protocol binding). Other transport mechanisms besides HTTP are permitted, provided the protocol-independent aspects of the SAML SOAP binding are observed (see section 3.1.2 of SAMLBind). The SAML 1.1 SOAP binding is built on top of version 1.1 ofRequest
element within the body of a SOAP message. Similarly, a SAML responder returns a SAML Response
element within the body of a returned SOAP message. If there is an error, the responder returns a SOAP fault code instead.
Any SAML markup must be included in the SOAP body. SAML 1.1 does not define any SAML-specific SOAP headers. A requester is free to insert any SOAP headers it wishes (although none are required).
Recall that in SOAP 1.1, a SOAPAction
HTTP header must be included with each HTTP request (although its value may be empty). A SAML requester may give the following value to the SOAPAction
header:
SOAPAction: Status
element in the SOAP body.
SAML 1.1 Profiles
In general, ''profiles'' describe the use cases and message exchanges required to ultimately transfer assertions from an identity provider to a service provider. SAML 1.1 specifies two Web Browser SSO Profiles: # Browser/POST Profile # Browser/Artifact Profile The Browser/POST Profile relies on a "push" operation that passes an SSO assertion ''by value'' through the browser using HTTP POST. We say that the identity provider "pushes" the assertion to the service provider. The Browser/Artifact Profile employs a "pull" mechanism. The profile essentially passes an SSO assertion from the identity provider to the service provider ''by reference'' (through the browser using HTTP Redirect), which is subsequently dereferenced via a back-channel exchange (i.e., the service provider "pulls" the assertion from the identity provider using SAML over SOAP over HTTP). These profiles support cross-domain single sign-on (SSO). The specification does not define any additional profiles. In particular, SAML 1.1 does not support a profile to secure a web service message nor does it support a single logout profile. Both SAML 1.1 profiles begin at the ''inter-site transfer service'', which is managed by the identity provider. How the principal arrives at the transfer service in the first place is not dictated by the specification. See sections 4.1 and 4.2 of SAMLOverview for possible scenarios. In practice, a client accessing a secured resource at a service provider will be redirected to the inter-site transfer service at the identity provider, but the precise sequence of steps needed to accomplish this is not outlined by SAML 1.1. (See section 4.3 of SAMLOverview for some rough ideas along these lines.) This scenario is thoroughly addressed in SAML 2.0. After visiting the inter-site transfer service, the principal is transferred to the ''assertion consumer service'' at the service provider. Exactly how the principal is transferred from the inter-site transfer service to the assertion consumer service depends on the profile used. In the case of the Browser/Artifact Profile, a redirect is used; in the case of the Browser/POST Profile, the client issues a POST request (with or without user intervention). To expedite processing by the assertion consumer service, two separate URLs are specified: # Assertion Consumer URL (Browser/POST Profile) # Artifact Receiver URL (Browser/Artifact Profile) These and other endpoint locations may be recorded in metadata files. Exactly how the identity provider obtains a trusted metadata file, or otherwise determines the trusted endpoint locations of a particular service provider, is out of scope with respect to SAML 1.1. Note that a conforming SAML 1.1 identity provider must provide an inter-site transfer service. Similarly, a SAML 1.1 service provider must provide an assertion consumer service.Browser/POST Profile
The SAML 1.1 Browser/POST profile specifies the following four (4) steps. The terminology used in the original specification has been modified slightly to conform to that of the SAML 2.0 specification. The message flow begins with a request directed at the IdP.Request the Inter-site Transfer Service at the IdP
The principal (via an HTTP user agent) requests the Inter-site Transfer Service at the identity provider:''target''
is the desired resource at the service provider, say, TARGET
parameter) is obtained by the user agent.
Respond with an HTML form
The Inter-site Transfer Service returns an HTML document containing aFORM
element:
TARGET
parameter has been preserved from step 1. The value of the SAMLResponse
parameter is the base64 encoding of a SAML Response
element such as the following:
Response
element.
Request the Assertion Consumer Service at the SP
The user agent requests the Assertion Consumer Service at the service provider:TARGET
and SAMLResponse
parameters are taken from the HTML form at step 2.
Note: To automate the submission of the form, the following line of JavaScript may appear anywhere on the page:
FORM
element (forms /code>).
Respond to the principal's request
The Assertion Consumer Service consumes the SAML Response
element, creates a security context at the service provider and redirects the user agent to the target resource.
Browser/Artifact Profile
The SAML 1.1 Browser/Artifact profile specifies the following six (6) steps. The terminology used in the original specification has been modified slightly to conform to that of the SAML 2.0 specification.
The message flow begins with a request directed at the IdP.
Request the Inter-site Transfer Service at the IdP
The principal (via an HTTP user agent) requests the Inter-site Transfer Service at the identity provider:
https://idp.example.org/TransferService ?TARGET=''target''
where ''target''
is the desired resource at the service provider, say, https://sp.example.com/home . In other words, the following GET request is issued by the user agent over SSL/TLS:
GET /TransferService?TARGET=target HTTP/1.1
Host: idp.example.org
The profile does not specify how the URL to the transfer service (with TARGET
parameter) is obtained by the user agent.
Redirect to the Assertion Consumer Service
The principal is redirected to the Assertion Consumer Service at the service provider, that is, the following response is returned to the user agent:
HTTP/1.1 302 Found
Location: https://sp.example.com/ACS/Artifact?TARGET=target&SAMLart=artifact
where ''artifact''
is a reference to an assertion the identity provider is willing to provide upon request.
Important: It is assumed that the principal has already established a security context at the identity provider, otherwise the Inter-site Transfer Service would be unable to provide an authentication statement.
Request the Assertion Consumer Service at the SP
The user agent requests the Assertion Consumer Service at the service provider:
https://sp.example.com/ACS/Artifact ?TARGET=''target''&SAMLart=''artifact''
where ''target''
and ''artifact''
are as before. In other words, the following GET request is issued by the user agent over SSL/TLS:
GET /ACS/Artifact?TARGET=target&SAMLart=artifact HTTP/1.1
Host: sp.example.com
Request the Artifact Resolution Service at the IdP
The Assertion Consumer Service at the service provider begins a back-channel exchange with the Artifact Resolution Service at the identity provider. A SAML SOAP message is bound to an HTTP POST request:
POST /ArtifactResolutionService HTTP/1.1
Host: idp.example.org
Content-Type: text/xml
Content-Length: nnn
SOAPAction: http://www.oasis-open.org/committees/security
artifact
where ''artifact''
was previously sent from the identity provider to the service provider in steps 2 and 3.
Respond with a SAML Assertion
The identity provider completes the back-channel exchange by responding with a SAML assertion bound to a SAML SOAP message:
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: nnnn
[email protected]
urn:oasis:names:tc:SAML:1.0:cm:artifact
In this case, the authentication statement includes a NameIdentifier
containing the principal's e-mail address.
Respond to the principal's request
The Assertion Consumer Service parses the SAML Response
element, creates a security context at the service provider and redirects the user agent to the target resource.
See also
* SAML
Security Assertion Markup Language (SAML, pronounced ''SAM-el'', ) is an open standard for exchanging authentication and authorization data between parties, in particular, between an identity provider (SAML), identity provider and a service provid ...
* SAML 2.0
Security Assertion Markup Language (SAML) 2.0 is a version of the Security Assertion Markup Language, SAML standard for exchanging authentication and authorization identities between security domains. SAML 2.0 is an XML-based communications ...
* SAML-based products and services
References
* E. Maler et al., ''Security and Privacy Considerations for the OASIS Security Assertion Markup Language (SAML) V1.1.'' OASIS Standard, September 2003. Document ID oasis-sstc-saml-sec-consider-1.1 http://www.oasis-open.org/committees/download.php/3404/oasis-sstc-saml-sec-consider-1.1.pdf
* E. Maler et al., ''Conformance Program Specification for the OASIS Security Assertion Markup Language (SAML) V1.1.'' OASIS Standard, September 2003. Document ID oasis-sstc-saml-conform-1.1 http://www.oasis-open.org/committees/download.php/3402/oasis-sstc-saml-conform-1.1.pdf
* E. Maler et al., ''Glossary for the OASIS Security Assertion Markup Language (SAML) V1.1.'' OASIS Standard, September 2003. Document ID oasis-sstc-saml-glossary-1.1 http://www.oasis-open.org/committees/download.php/3401/oasis-sstc-saml-glossary-1.1.pdf
{{refend
Computer security software
XML-based standards