From 119eca6c7e43b2116e8437339b7f5b71a8f62184 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Mon, 19 Feb 2024 09:45:21 +0100 Subject: [PATCH] Fix OAUTH redirect urls not respecting APP_URL - Fixes #299 --- config/services.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/services.php b/config/services.php index 4a113592..5dfae0bd 100644 --- a/config/services.php +++ b/config/services.php @@ -27,19 +27,19 @@ 'userinfo_url' => env('OPENID_USERINFO_URL'), 'client_id' => env('OPENID_CLIENT_ID'), 'client_secret' => env('OPENID_CLIENT_SECRET'), - 'redirect' => '/socialite/callback/openid', + 'redirect' => env('APP_URL') . '/socialite/callback/openid', ], 'github' => [ 'client_id' => env('GITHUB_CLIENT_ID'), 'client_secret' => env('GITHUB_CLIENT_SECRET'), - 'redirect' => '/socialite/callback/github', + 'redirect' => env('APP_URL') . '/socialite/callback/github', ], // 'google' => [ // 'client_id' => env('GOOGLE_CLIENT_ID'), // 'client_secret' => env('GOOGLE_CLIENT_SECRET'), - // 'redirect' => '/socialite/callback/google ', + // 'redirect' => env('APP_URL') . '/socialite/callback/google ', // ], 'postmark' => [