Merge pull request #1108 from dokime7/patch-9

Send client_secret when get oauth2 refresh_token
This commit is contained in:
mdipierro committed 2015-12-04 10:38:04 -06:00
commit 721af77c90
1 file changed
+4 -2
@@ -154,10 +154,12 @@ server for requests. It can be used for the optional"scope" parameters for Face
code = current.request.vars.code code = current.request.vars.code
if code or refresh_token: if code or refresh_token:
data = dict(client_id=self.client_id) data = dict(
client_id=self.client_id,
client_secret=self.client_secret,
)
if code: if code:
data.update( data.update(
client_secret=self.client_secret,
redirect_uri=current.session.redirect_uri, redirect_uri=current.session.redirect_uri,
code=code, code=code,
grant_type='authorization_code' grant_type='authorization_code'