philipptrenz / kfm-connector
Keep track of all your Kirby websites within a single tool.
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:kirby-plugin
Requires
- firebase/php-jwt: ^6.8
- getkirby/composer-installer: ^1.1
Requires (Dev)
- phpunit/phpunit: ^10.3
- swaggest/json-schema: ^0.12.41
README
This is the official Kirby plugin to connect your Kirby website to the Kirby Fleet Manager.
Installation
Download
Download and copy this repository to /site/plugins/kfm-connector
.
Git submodule
git submodule add https://github.com/philipptrenz/kfm-connector.git site/plugins/kfm-connector
Composer
composer require philipptrenz/kfm-connector
Setup
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' ] ], # ... ];
Test
./vendor/bin/phpunit --bootstrap ./tests/bootstrap.php --testdox ./tests/suites
License
MIT
© 2023 Philipp Trenz