mirror of https://github.com/jumpserver/jumpserver
fix: perf: 修改OAuth2的access_token前缀格式
parent
e90d8c8561
commit
6e2e92be5e
|
@ -119,7 +119,7 @@ class OAuth2Backend(JMSModelBackend):
|
|||
|
||||
headers = {
|
||||
'Accept': 'application/json',
|
||||
'Authorization': 'token {}'.format(response_data.get('access_token', ''))
|
||||
'Authorization': 'Bearer {}'.format(response_data.get('access_token', ''))
|
||||
}
|
||||
|
||||
logger.debug(log_prompt.format('Get userinfo endpoint'))
|
||||
|
|
Loading…
Reference in New Issue