ultraware/php-saml

This package is abandoned and no longer maintained. No replacement package was suggested.

OneLogin PHP SAML IDP list extension

3.0.1 2020-06-19 13:05 UTC

This package is auto-updated.

Last update: 2023-08-19 20:08:00 UTC


README

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