infrastructure/machines/nixos/compute01/librenms/kanidm.patch
catvayor f685e7e4ec
All checks were successful
Build all the nodes / netcore02 (push) Successful in 24s
Build all the nodes / Jaccess01 (push) Successful in 26s
Build all the nodes / Jaccess04 (push) Successful in 28s
Build all the nodes / netcore01 (push) Successful in 26s
Run pre-commit on all files / pre-commit (push) Successful in 33s
Build all the nodes / ap01 (push) Successful in 43s
Build all the nodes / bridge01 (push) Successful in 48s
Build all the nodes / geo02 (push) Successful in 49s
Build all the nodes / hypervisor03 (push) Successful in 56s
Build all the nodes / hypervisor01 (push) Successful in 57s
Build all the nodes / geo01 (push) Successful in 1m1s
Build all the nodes / cof02 (push) Successful in 1m4s
Build all the nodes / hypervisor02 (push) Successful in 1m3s
Build all the nodes / lab-router01 (push) Successful in 1m2s
Build all the nodes / build01 (push) Successful in 1m7s
Build all the nodes / iso (push) Successful in 1m6s
Build all the nodes / tower01 (push) Successful in 47s
Build the shell / build-shell (push) Successful in 23s
Build all the nodes / rescue01 (push) Successful in 1m23s
Build all the nodes / krz01 (push) Successful in 1m56s
Build all the nodes / vault01 (push) Successful in 1m21s
Build all the nodes / storage01 (push) Successful in 1m39s
Build all the nodes / zulip01 (push) Successful in 1m7s
Build all the nodes / web02 (push) Successful in 1m12s
Build all the nodes / web03 (push) Successful in 1m10s
Build all the nodes / web01 (push) Successful in 1m20s
Build all the nodes / compute01 (push) Successful in 2m31s
fix(librenms): fix kanidm login
2025-06-07 22:22:05 +02:00

90 lines
3.2 KiB
Diff

diff --git a/composer.json b/composer.json
index af8168f4c..1775f150e 100644
--- a/composer.json
+++ b/composer.json
@@ -54,6 +54,7 @@
"phpmailer/phpmailer": "~6.0",
"predis/predis": "^2.0",
"silber/bouncer": "^1.0",
+ "socialiteproviders/kanidm": "^5.0",
"socialiteproviders/manager": "^4.3",
"spatie/laravel-ignition": "^2.0",
"symfony/yaml": "^6.2",
diff --git a/composer.lock b/composer.lock
index 3d89a1530..a00c5f307 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "fee5d24447dced4397e26066f8c9ee59",
+ "content-hash": "b9316a47587c8e6f6b0adbe3d54777f3",
"packages": [
{
"name": "amenadiel/jpgraph",
@@ -5906,6 +5906,56 @@
},
"time": "2023-02-10T16:47:25+00:00"
},
+ {
+ "name": "socialiteproviders/kanidm",
+ "version": "5.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/SocialiteProviders/Kanidm.git",
+ "reference": "111ad45941e7150e3219ddfdeb8159f758bde2fd"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/SocialiteProviders/Kanidm/zipball/111ad45941e7150e3219ddfdeb8159f758bde2fd",
+ "reference": "111ad45941e7150e3219ddfdeb8159f758bde2fd",
+ "shasum": ""
+ },
+ "require": {
+ "ext-json": "*",
+ "php": "^8.0",
+ "socialiteproviders/manager": "^4.4"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "SocialiteProviders\\Kanidm\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Tom Hubrecht",
+ "email": "tom@hubrecht.ovh"
+ }
+ ],
+ "description": "Kanidm OAuth2 Provider for Laravel Socialite",
+ "keywords": [
+ "kanidm",
+ "laravel",
+ "oauth",
+ "provider",
+ "socialite"
+ ],
+ "support": {
+ "docs": "https://socialiteproviders.com/kanidm",
+ "issues": "https://github.com/socialiteproviders/providers/issues",
+ "source": "https://github.com/socialiteproviders/providers"
+ },
+ "time": "2024-02-19T19:49:21+00:00"
+ },
{
"name": "socialiteproviders/manager",
"version": "v4.6.0",
index 3d89a1530..a00c5f307 100644
--- a/app/Providers/EventServiceProvider.php
+++ b/app/Providers/EventServiceProvider.php
@@ -33,3 +33,4 @@
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
+ \SocialiteProviders\Kanidm\KanidmExtendSocialite::class.'@handle',
\App\Listeners\SocialiteWasCalledListener::class,
],