# php-saml **Repository Path**: mirrors_ultraware/php-saml ## Basic Information - **Project Name**: php-saml - **Description**: Partial copy of onelogin/php-saml with scoping (idp-list) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-07-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PHP-saml with idp list Partial copy of onelogin/php-saml with scoping (idp-list) # usage ### create a new Saml2 auth class with ```php $auth = new \Ultraware\phpSaml\lib\Auth(); ``` ### Add the following to the settings.php to use scoping ```php // 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