From 92d0d0c387fd9d41c8371fcef7d3bd5beacdc2ac Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 29 Jul 2024 12:47:14 -0500 Subject: Differentiate python's requests library from our monadic wrappers. --- uploader/oauth2/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uploader/oauth2') diff --git a/uploader/oauth2/views.py b/uploader/oauth2/views.py index c33f7bc..26c009b 100644 --- a/uploader/oauth2/views.py +++ b/uploader/oauth2/views.py @@ -14,7 +14,7 @@ from flask import ( current_app as app) from uploader import session -from uploader import monadic_requests as requests +from uploader import monadic_requests as mrequests from . import jwks from .client import SCOPE, oauth2_get, oauth2_clientid, authserver_uri @@ -61,7 +61,7 @@ def authorisation_code(): jwtkey = jwks.newest_jwk_with_rotation( jwks.jwks_directory(app, "UPLOADER_SECRETS"), int(app.config["JWKS_ROTATION_AGE_DAYS"])) - return requests.post( + return mrequests.post( urljoin(authserver_uri(), "auth/token"), json={ "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer", -- cgit v1.2.3