| | |
| | | import website from "@/config/website"; |
| | | |
| | | export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) => request({ |
| | | url: '/api/blade-auth/oauth/token', |
| | | url: '/api/oauth/token', |
| | | method: 'post', |
| | | headers: { |
| | | 'Tenant-Id': tenantId, |
| | |
| | | }); |
| | | |
| | | export const loginBySocial = (tenantId, source, code, state) => request({ |
| | | url: '/api/blade-auth/oauth/token', |
| | | url: '/api/oauth/token', |
| | | method: 'post', |
| | | headers: { |
| | | 'Tenant-Id': tenantId |
| | |
| | | }) |
| | | |
| | | export const loginBySso = (state, code) => request({ |
| | | url: '/api/blade-auth/oauth/token', |
| | | url: '/api/oauth/token', |
| | | method: 'post', |
| | | headers: { |
| | | 'Tenant-Id': state |
| | |
| | | }) |
| | | |
| | | export const refreshToken = (refresh_token, tenantId, deptId, roleId) => request({ |
| | | url: '/api/blade-auth/oauth/token', |
| | | url: '/api/oauth/token', |
| | | method: 'post', |
| | | headers: { |
| | | 'Tenant-Id': tenantId, |