aboutsummaryrefslogtreecommitdiff
path: root/uploader/oauth2/client.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-08 15:30:42 -0500
committerFrederick Muriuki Muriithi2024-08-08 15:30:42 -0500
commitc5fd5ac4e1048889f45aa61ee9603c684c2ea909 (patch)
treec590c13c71f4f4836acf610c250cf35fd1b1481b /uploader/oauth2/client.py
parent06a760328a8ae9cb6d89a5ecc64c4e3281cb9bf1 (diff)
downloadgn-uploader-c5fd5ac4e1048889f45aa61ee9603c684c2ea909.tar.gz
Fix linting issues.
Diffstat (limited to 'uploader/oauth2/client.py')
-rw-r--r--uploader/oauth2/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/uploader/oauth2/client.py b/uploader/oauth2/client.py
index 6dde9cb..a3e4ba3 100644
--- a/uploader/oauth2/client.py
+++ b/uploader/oauth2/client.py
@@ -88,14 +88,14 @@ def oauth2_client():
"""Update the token when refreshed."""
session.set_user_token(token)
- def __json_auth__(client, method, uri, headers, body):
+ def __json_auth__(client, _method, uri, headers, body):
return (
uri,
{**headers, "Content-Type": "application/json"},
json.dumps({
**dict(url_decode(body)),
- "client_id": oauth2_clientid(),
- "client_secret": oauth2_clientsecret()
+ "client_id": client.client_id,
+ "client_secret": client.client_secret
}))
def __client__(token) -> OAuth2Session: