From 0471a3aeb89e82f4887caf625cc61f82ee428e8b Mon Sep 17 00:00:00 2001 From: Marty McGuire Date: Thu, 9 Mar 2017 22:32:19 -0500 Subject: [PATCH] Add `grant_type` to authorization token requests micropub.rocks fails on the token fetching step if `grant_type=authorization_code` is missing from the token request. --- flask_micropub.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flask_micropub.py b/flask_micropub.py index b97f13a..b11c47d 100644 --- a/flask_micropub.py +++ b/flask_micropub.py @@ -259,6 +259,7 @@ class MicropubClient: 'redirect_uri': redirect_uri, 'client_id': self.client_id, 'state': wrapped_state, + 'grant_type': 'authorization_code', } flask.current_app.logger.debug( 'Flask-Micropub: requesting access token from: %s, data: %s',