From 08a2d96213e34e98562f415a99a7146df0c25580 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Tue, 24 Oct 2023 10:26:38 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96OAuth2.0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96Access=5Ftoken=E7=9A=84content=5Ftype?= 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: