From a5286bf62f4ad243b366cd6c9182c61b13ef083a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Tue, 26 Nov 2024 20:05:40 +0100 Subject: [PATCH] add .well-known/openid-configuration to the root as well --- web.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web.php b/web.php index 6ce08b2..c56baf8 100644 --- a/web.php +++ b/web.php @@ -29,6 +29,7 @@ if (!empty($_ENV['DEV'])) { Container::$routeCollection = new RouteCollection(); Container::$routeCollection->get('home', '', [HomeController::class, 'getHome']); +Container::$routeCollection->get('oauth-config-root', '.well-known/openid-configuration', [OAuthController::class, 'getConfig']); Container::$routeCollection->group('login', function (RouteCollection $routeCollection) { $routeCollection->get('login', '', [LoginController::class, 'getLoginForm']); $routeCollection->post('login-action', '', [LoginController::class, 'login']);