From 1dea424104a29f9fe1894fcd48abf210a2a02a53 Mon Sep 17 00:00:00 2001 From: Bryan Date: Wed, 24 Jan 2024 18:22:33 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20=E4=BF=AE=E5=A4=8D=20OAuth2=20?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E6=97=B6=20POST=20=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=20access=5Ftoken=20API=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20json=20=E4=BC=A0=E9=80=92=E6=95=B0=E6=8D=AE"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/backends/oauth2/backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/backends/oauth2/backends.py b/apps/authentication/backends/oauth2/backends.py index 9f3b04ac3..0c40d09bd 100644 --- a/apps/authentication/backends/oauth2/backends.py +++ b/apps/authentication/backends/oauth2/backends.py @@ -105,7 +105,7 @@ class OAuth2Backend(JMSModelBackend): 'Accept': 'application/json' } if token_method == 'post': - access_token_response = requests_func(access_token_url, headers=headers, json=query_dict) + access_token_response = requests_func(access_token_url, headers=headers, data=query_dict) else: access_token_response = requests_func(access_token_url, headers=headers) try: