This is the official Kirby plugin to connect your Kirby website to the Kirby Fleet Manager.
Download and copy this repository to /site/plugins/kfm-connector
.
git submodule add https://github.com/philipptrenz/kfm-connector.git site/plugins/kfm-connector
composer require philipptrenz/kfm-connector
Add the base url to your Kirby Fleet Manager instance as issuer to site/config/config.php
(make sure to use a secure SSL connection):
<?php
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'
]
],
# ...
];
./vendor/bin/phpunit --bootstrap ./tests/bootstrap.php --testdox ./tests/suites
MIT
© 2023 Philipp Trenz