Skip to content

Commit

Permalink
Changed client_secret to client-secret
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkendk committed Jun 13, 2022
1 parent 9b2be41 commit 4e58e68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,9 @@ def process(self, authid):
'grant_type': 'refresh_token',
'refresh_token': resp['refresh_token']
}
if service.has_key("client_secret"):
if service.has_key("client-secret"):
request_params['client_secret'] = service['client-secret']
if service.has_key("redirect_uri"):
if service.has_key("redirect-uri"):
request_params['redirect_uri'] = service['redirect-uri']

# Some services do not allow the state to be passed
Expand Down Expand Up @@ -785,9 +785,9 @@ def handle_v2(self, inputfragment):
'grant_type': 'refresh_token',
'refresh_token': refresh_token
}
if service.has_key("client_secret"):
if service.has_key("client-secret"):
request_params['client_secret'] = service['client-secret']
if service.has_key("redirect_uri"):
if service.has_key("redirect-uri"):
request_params['redirect_uri'] = service['redirect-uri']

data = urllib.urlencode(request_params)
Expand Down

0 comments on commit 4e58e68

Please sign in to comment.