From 9570521a34a139a3e9a2b27d6c526ee546a45fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dillenbourg?= Date: Wed, 24 Apr 2024 15:43:20 +0200 Subject: [PATCH] Apply styling and fix --- composer.json | 3 ++- src/Laravel/JwksController.php | 1 - src/Laravel/routes/web.php | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 4b5476e..669ca27 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,8 @@ "lcobucci/jwt": "^4.0|^4.3|^5.0", "league/oauth2-server": "^8.2.0", "laravel/passport": "^11.0|^12.0", - "laravel/framework": "^10.0|^11.0" + "laravel/framework": "^10.0|^11.0", + "ext-openssl": "*" }, "require-dev": { "guzzlehttp/psr7": "^1.7", diff --git a/src/Laravel/JwksController.php b/src/Laravel/JwksController.php index fe3e3f8..d8e6f83 100644 --- a/src/Laravel/JwksController.php +++ b/src/Laravel/JwksController.php @@ -2,7 +2,6 @@ namespace OpenIDConnect\Laravel; -use Illuminate\Config\Repository as Config; use Laravel\Passport\Passport; class JwksController diff --git a/src/Laravel/routes/web.php b/src/Laravel/routes/web.php index 7fefa1a..68dc143 100644 --- a/src/Laravel/routes/web.php +++ b/src/Laravel/routes/web.php @@ -1,7 +1,12 @@ name('openid.jwks'); + Route::get('/oauth/jwks', JwksController::class)->name('openid.jwks'); } if (config('openid.routes.jwks', true)) { - Route::get('/.well-known/openid-configuration', \OpenIDConnect\Laravel\DiscoveryController::class)->name('openid.discovery'); + Route::get('/.well-known/openid-configuration', DiscoveryController::class)->name('openid.discovery'); }