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.
This commit is contained in:
parent
480090ebe4
commit
0471a3aeb8
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue