Available in stable development 1.14 1.13 1.12 1.11 1.10 1.9 1.8 1.7 1.6


Table of Contents

Scoping allows a service provider to specify a list of identity providers in an authnRequest to a proxying identity provider. This is an indication to the proxying identity provider that the service will only deal with the identity providers specified.

A common use is for a service provider in a hub-and-spoke architecture to manage its own discovery service and being able to tell the hub/proxy-IdP which (backend-end) identity provider to use. The standard discovery service in SimpleSAMLphp will show the intersection of all the known IdPs and the IdPs specified in the scoping element. If this intersection only contains one IdP, then the request is automatically forwarded to that IdP.

Scoping is a SAML 2.0 specific option.

1 Options

SimpleSAMLphp supports scoping by allowing the following options:

Specifies the number of proxying indirections permissible between the identity provider receiving the request and the identity provider who ultimately authenticates the user. A count of zero permits no proxying. If ProxyCount is unspecified the number of proxy indirections is not limited.
The list of trusted IdPs, i.e. the list of entityIDs for identity providers that are relevant for a service provider in an authnRequest.

1.1 Note

SimpleSAMLphp does not support specifying the GetComplete option.

2 Usage

The ProxyCount and IDPList option can be specified in the following places:

Example configuration:

# Add the IDPList
'IDPList' => array(

# Set ProxyCount
'ProxyCount' => 2,

3 RequesterID element

To allow an identity provider to identify the original requester and the proxying identity providers, SimpleSAMLphp adds the RequesterID element to the request and if necessary the scoping element even if explicit scoping is not used.

The RequesterId elements are available from the state array as an array, for instance the authenticate method in an authentication source

$requesterIDs = $state['saml:RequesterID'];

4 AuthenticatingAuthority element

To allow a service provider to identify the authentication authorities that were involved in the authentication of the user, SimpleSAMLphp adds the AuthenticatingAuthority elements.

The list of authenticating authorities (the AuthenticatingAuthority element) can be retrieved as an array from the authentication data.

# Get the authentication source.
$as = new SimpleSAML_Auth_Simple();

# Get the AuthenticatingAuthority
$aa = $as->getAuthData('saml:AuthenticatingAuthority');

5 Support

If you need help to make this work, or want to discuss SimpleSAMLphp with other users of the software, you are fortunate: Around SimpleSAMLphp there is a great Open source community, and you are welcome to join! The forums are open for you to ask questions, contribute answers other further questions, request improvements or contribute with code or plugins of your own.