PHP code example of philipptrenz / kfm-connector

1. Go to this page and download the library: Download philipptrenz/kfm-connector 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/ */

    

philipptrenz / kfm-connector example snippets




return [
    # ...

    'philipptrenz.kfm-connector' => [
        'issuer' => 'https://my-kirby-fleet-manager-instance.com',

        'jwks_cache_duration' => 4320,  // OPTIONAL; in minutes, defaults to 3 days
        'ip_whitelist' => [             // OPTIONAL; limits access to listed IPs, if set
            '::1',
            '127.0.0.1'
        ]
    ],

    # ...
];
bash
./vendor/bin/phpunit --bootstrap ./tests/bootstrap.php --testdox ./tests/suites