Skip to content

Commit

Permalink
Remove redirect_uri when fetch oauth 1.0 token
Browse files Browse the repository at this point in the history
Fix #308
  • Loading branch information
lepture committed Jan 15, 2021
1 parent 1969b56 commit 87bad35
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions authlib/integrations/base_client/base_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,9 @@ def retrieve_access_token_params(self, request, request_token=None):
params['request_token'] = request_token
else:
params = self._retrieve_oauth2_access_token_params(request, params)

redirect_uri = self.framework.get_session_data(request, 'redirect_uri')
if redirect_uri:
params['redirect_uri'] = redirect_uri
redirect_uri = self.framework.get_session_data(request, 'redirect_uri')
if redirect_uri:
params['redirect_uri'] = redirect_uri

log.debug('Retrieve temporary data: {!r}'.format(params))
return params
Expand Down

0 comments on commit 87bad35

Please sign in to comment.