From e2c285293c8d490a39745e40d90221c698742db7 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 18 May 2017 18:39:46 +0100 Subject: [PATCH 1/5] =?UTF-8?q?Method=20`getAccessToken`=20doesn=E2=80=99t?= =?UTF-8?q?=20need=20the=20state=20parameter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/MicropubClientController.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index ef9ffa28..8b1457cf 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -327,7 +327,6 @@ class MicropubClientController extends Controller $request->input('me'), route('micropub-client-get-new-token-callback'), // redirect_uri route('micropub-client'), // client_id - $request->input('state') ); if (array_key_exists('access_token', $token)) { $url = normalize_url($token['me']); From 25a0dc27b7d97f18d12989481be3af247d9d2f8e Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 18 May 2017 18:40:51 +0100 Subject: [PATCH 2/5] Remove trailling comma, not valid in list of function parameters --- app/Http/Controllers/MicropubClientController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index 8b1457cf..9d6f8d6d 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -326,7 +326,7 @@ class MicropubClientController extends Controller $request->input('code'), $request->input('me'), route('micropub-client-get-new-token-callback'), // redirect_uri - route('micropub-client'), // client_id + route('micropub-client') // client_id ); if (array_key_exists('access_token', $token)) { $url = normalize_url($token['me']); From 87235a0394e6574df5cdff163049c9c6dfa82f2f Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 18 May 2017 18:42:38 +0100 Subject: [PATCH 3/5] State not needed in `verifyIndieAuthCode` method --- app/Http/Controllers/TokenEndpointController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/TokenEndpointController.php b/app/Http/Controllers/TokenEndpointController.php index fb0da5ac..16653b68 100644 --- a/app/Http/Controllers/TokenEndpointController.php +++ b/app/Http/Controllers/TokenEndpointController.php @@ -48,8 +48,7 @@ class TokenEndpointController extends Controller $request->input('code'), $request->input('me'), $request->input('redirect_uri'), - $request->input('client_id'), - $request->input('state') + $request->input('client_id') ); if (array_key_exists('me', $auth)) { $scope = $auth['scope'] ?? ''; From eac9f2435bb03207908c41a7266d51ac81a6ebbd Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 18 May 2017 18:43:11 +0100 Subject: [PATCH 4/5] Update changelog --- changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index 72081081..8c840ce7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version {next} + - Fix issues with using the indieauth client + ## Version 0.5.3 (2017-05-18) - Tweak config page and get token method to better handle/show errors From 0bedf8bbde9e151d7c6c9adf34b0a8373fd6b40b Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 18 May 2017 18:43:42 +0100 Subject: [PATCH 5/5] Bump version number to 0.5.4 --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 8c840ce7..6a0ddbcf 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,6 @@ # Changelog -## Version {next} +## Version 0.5.4 (2017-05-18) - Fix issues with using the indieauth client ## Version 0.5.3 (2017-05-18)