Skip to content

Commit

Permalink
Apply styling and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy379 committed Apr 24, 2024
1 parent 8683b3b commit 9570521
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/Laravel/JwksController.php
Expand Up @@ -2,7 +2,6 @@

namespace OpenIDConnect\Laravel;

use Illuminate\Config\Repository as Config;
use Laravel\Passport\Passport;

class JwksController
Expand Down
9 changes: 7 additions & 2 deletions src/Laravel/routes/web.php
@@ -1,7 +1,12 @@
<?php

use Illuminate\Support\Facades\Route;
use OpenIDConnect\Laravel\DiscoveryController;
use OpenIDConnect\Laravel\JwksController;

if (config('openid.routes.discovery', true)) {
Route::get('/oauth/jwks', \OpenIDConnect\Laravel\JwksController::class)->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');
}

0 comments on commit 9570521

Please sign in to comment.