aboutsummaryrefslogtreecommitdiff
path: root/uploader/oauth2
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/oauth2')
-rw-r--r--uploader/oauth2/views.py4
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",