Send client_secret when get oauth2 refresh_token
With some oauth2 providers, the oauth client_secret is required when getting a refresh_token.
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user