Permalink
Browse files

Added response_type=code for authorize requests

  • Loading branch information...
1 parent d7f0f6c commit 8bcba9a5f3db9fdcd2aff9e31245a33a053c5c39 @mitsuhiko committed Oct 6, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 flask_oauth.py
View
@@ -339,6 +339,7 @@ def authorize(self, callback=None):
params = dict(self.request_token_params)
params['redirect_uri'] = callback
params['client_id'] = self.consumer_key
+ params['response_type'] = 'code'
session[self.name + '_oauthredir'] = callback
url = add_query(self.expand_url(self.authorize_url), params)

0 comments on commit 8bcba9a

Please sign in to comment.