Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
simplesamlphp-sp.md 8.35 KiB

SimpleSAMLphp Service Provider QuickStart

This guide will describe how to configure SimpleSAMLphp as a service provider (SP). You should previously have installed SimpleSAMLphp as described in the SimpleSAMLphp installation instructions.

Configuring the SP

The SP is configured by an entry in config/authsources.php.

This is a minimal authsources.php for a SP:

<?php
$config = array(

    /* This is the name of this authentication source, and will be used to access it later. */
    'default-sp' => array(
        'saml:SP',
    ),
);

For more information about additional options available for the SP, see the saml:SP reference.

If you want multiple Service Providers in the same site and installation, you can add more entries in the authsources.php configuration. If so remember to set the EntityID explicitly. Here is an example:

'sp1' => array(
    'saml:SP',
	'entityID' => 'https://sp1.example.org/',
),
'sp2' => array(
    'saml:SP',
	'entityID' => 'https://sp2.example.org/',
),

Enabling a certificate for your Service Provider