mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-30 21:50:01 +00:00
Revert "fix: 修复 OAuth2 认证时 POST 方式获取 access_token API 使用 json 传递数据"
This commit is contained in:
parent
1f5554d945
commit
1dea424104
@ -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…
Reference in New Issue
Block a user