Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Latest commit

 

History

History
43 lines (34 loc) · 1.38 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.38 KB

PHP-saml with idp list

Partial copy of onelogin/php-saml with scoping (idp-list)

usage

create a new Saml2 auth class with

$auth = new \Ultraware\phpSaml\lib\Auth();

Add the following to the settings.php to use scoping

    // Identity Provider Data that we want connected with our SP.
    'idp' => array [

        ....

        /*
         * You can optional set a scoping. 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.
         */
        'scoping' => [
            // Specifies the number of proxying indirections permissible.
            'proxyCount' => 2,
            // The list of entityIDs for identity providers that are relevant for a service provider in an authnRequest.
            'idpList' => ['entityId'],
            // To allow an identity provider to identify the original requester
            'requesterId' => 'requesterId.nl',
        ],

        ...

    ]

Laravel

composer require aacotroneo/laravel-saml2

register the Ultraware\phpSaml\laravel\Saml2ServiceProvide::class in your'e config/app.php instead of the Aacotroneo\Saml2\Saml2ServiceProvider::class Add the config to the sam2_settings.php