PHP code example of niif / simplesamlphp-module-attributelimit

1. Go to this page and download the library: Download niif/simplesamlphp-module-attributelimit library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

niif / simplesamlphp-module-attributelimit example snippets


$config = array(
    'class' => 'niif:AttributeLimit',
    'bilateralSPs' => array(
        'entityid1' => array(
            'attr1',
            'attr2'
        ),
        'entityid2' => array(
            'attr1',
            'attr2'
        ),
    ),
    'bilateralAttributes' => array(
        'attr1' => array(
            'entityid1',
            'entityid2'
        ),
        'attr2' => array(
            'entityid1',
            'entityid2'
        ),
    ),
    'attribute_x', 'attribute_y',
)