Hey maicol07,
I was happy to see your Extension and Plugin. That's exactly what I need. :-)
But, even if I try everything, it won't work at my environment.
After I tried to login I get following Error on logs:
PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/vendor/illuminate/collections/Arr.php:177\nStack trace:\n#0 /var/www/html/vendor/illuminate/collections/Arr.php(177): array_key_exists()\n#1 /var/www/html/vendor/maicol07/flarum-api-client/src/Response/Factory.php(28): Illuminate\Support\Arr::exists()\n#2 /var/www/html/vendor/maicol07/flarum-api-client/src/Client.php(77): Maicol07\Flarum\Api\Response\Factory::build()\n#3 [internal function]: Maicol07\Flarum\Api\Client->request()\n#4 /var/www/html/vendor/maicol07/flarum-api-client/src/Fluent.php(353): call_user_func_array()\n#5 /var/www/html/vendor/maicol07/flarum-sso-plugin/src/User.php(112): Maicol07\Flarum\Api\Fluent->call()\n#6 /var/www/html/vendor/maicol07/flarum-sso-plugin/src/User.php(48): Maicol07\SSO\User->fetch()\n#7 /var/www/html/vendor/maicol07/flarum-sso-plugin/src/Flarum.php(117): Maicol07\SSO\User->construct()\n#8 /var/www/html/index2.php(35): Maicol07\SSO\Flarum->user()\n#9 {main}\n thrown in /var/www/html/vendor/illuminate/collections/Arr.php on line 177, referer: https://rebels-members.de/index2.php
I used your example files and configured everything needed (.env and flarum.php, activated Extension and so on). Maybe you can help me?
Thanks in advance!
Dirk