Browse Source

Revert "fix: 修复 OAuth2 认证时 POST 方式获取 access_token API 使用 json 传递数据"

pull/12601/head
Bryan 10 months ago committed by 老广
parent
commit
1dea424104
  1. 2
      apps/authentication/backends/oauth2/backends.py

2
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:

Loading…
Cancel
Save