Skip to content

Commit

Permalink
Fix missing code value.
Browse files Browse the repository at this point in the history
This bug is introduced by #16
  • Loading branch information
lepture committed Feb 1, 2018
1 parent ccf37ef commit d5cd861
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions authlib/flask/client/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ def authorize_access_token(self, **kwargs):
params = request.args.to_dict(flat=True)
else:
request_token = None
params = {}

params = {'code': request.args['code']}
# verify state
state_key = '_{}_state_'.format(self.name)
state = session.pop(state_key, None)
Expand Down

0 comments on commit d5cd861

Please sign in to comment.