From d77f2302baef7be435d5e37cb0891d31166f7507 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sat, 3 Aug 2024 11:33:09 +0100 Subject: [PATCH] Store requested scopes as a string during IndieAuth flow --- app/Http/Controllers/IndieAuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/IndieAuthController.php b/app/Http/Controllers/IndieAuthController.php index c56fc59d..e919fa6d 100644 --- a/app/Http/Controllers/IndieAuthController.php +++ b/app/Http/Controllers/IndieAuthController.php @@ -104,7 +104,7 @@ class IndieAuthController extends Controller 'client_id' => $request->get('client_id'), 'redirect_uri' => $request->get('redirect_uri'), 'auth_code' => $authCode, - 'scope' => $request->get('scope', ''), + 'scope' => implode(' ', $request->get('scope', '')), ]; Cache::put($cacheKey, $indieAuthRequestData, now()->addMinutes(10));