Skip to content
Browse files

Adding response_type is 'code' for google oauth2. Not sure if this is…

… specific to google's implementation or standard. Its untested with other providers.
  • Loading branch information...
1 parent 6dfb5fa commit e2ef8a687442b66ca3a6982009f165837d7cb971 @FreakTheMighty committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 flaskext/oauth.py
View
1 flaskext/oauth.py
@@ -312,6 +312,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)
return redirect(url)

0 comments on commit e2ef8a6

Please sign in to comment.
Something went wrong with that request. Please try again.