截止‘运力管理’模块
This commit is contained in:
+6
-5
@@ -45,17 +45,18 @@ export const loginBySocial = (tenantId, source, code, state) =>
|
||||
},
|
||||
});
|
||||
|
||||
export const loginBySso = (state, code) =>
|
||||
export const loginBySso = (tenantId, state, code) =>
|
||||
request({
|
||||
url: '/blade-auth/oauth/token',
|
||||
url: '/blade-auth/iam/sso/token',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Tenant-Id': state,
|
||||
'Tenant-Id': tenantId,
|
||||
},
|
||||
params: {
|
||||
tenantId: state,
|
||||
tenant_id: tenantId,
|
||||
code,
|
||||
grant_type: 'authorization_code',
|
||||
state,
|
||||
grant_type: 'iam_sso',
|
||||
scope: 'all',
|
||||
redirect_uri: website.oauth2.redirectUri,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user