diff options
author | Frederick Muriuki Muriithi | 2024-07-29 12:47:14 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-05 09:52:16 -0500 |
commit | 92d0d0c387fd9d41c8371fcef7d3bd5beacdc2ac (patch) | |
tree | d38cb6a656fb16bacac49973665d163746bdb616 /uploader/oauth2/views.py | |
parent | ac429a65e7f9dd57b54a0fc96d4e494bdb93a61a (diff) | |
download | gn-uploader-92d0d0c387fd9d41c8371fcef7d3bd5beacdc2ac.tar.gz |
Differentiate python's requests library from our monadic wrappers.
Diffstat (limited to 'uploader/oauth2/views.py')
-rw-r--r-- | uploader/oauth2/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
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", |