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'); }