mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 09:21:02 +00:00
perf: 使用新的钉钉登录接口 (#12635)
* perf: 暂存 * perf: 使用新的钉钉登录接口 --------- Co-authored-by: halo <wuyihuangw@gmail.com>
This commit is contained in:
@@ -70,11 +70,12 @@ class DingTalkQRMixin(DingTalkBaseMixin, View):
|
||||
self.request.session[DINGTALK_STATE_SESSION_KEY] = state
|
||||
|
||||
params = {
|
||||
'appid': settings.DINGTALK_APPKEY,
|
||||
'client_id': settings.DINGTALK_APPKEY,
|
||||
'response_type': 'code',
|
||||
'scope': 'snsapi_login',
|
||||
'scope': 'openid',
|
||||
'state': state,
|
||||
'redirect_uri': redirect_uri,
|
||||
'prompt': 'consent'
|
||||
}
|
||||
url = URL.QR_CONNECT + '?' + urlencode(params)
|
||||
return url
|
||||
|
Reference in New Issue
Block a user