mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 01:25:28 +08:00
集成单点登录
This commit is contained in:
parent
d2e857f70b
commit
1e014d76fb
@ -1,12 +1,12 @@
|
|||||||
package org.dromara.system.saas.dubbo;
|
package org.dromara.system.saas.dubbo;
|
||||||
|
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.apache.dubbo.config.annotation.DubboService;
|
import org.apache.dubbo.config.annotation.DubboService;
|
||||||
import org.dromara.common.core.utils.MapstructUtils;
|
import org.dromara.system.domain.vo.SysClientVo;
|
||||||
import org.dromara.system.saas.api.RemoteClientService;
|
import org.dromara.system.saas.api.RemoteClientService;
|
||||||
import org.dromara.system.saas.api.domain.vo.RemoteClientVo;
|
import org.dromara.system.saas.api.domain.vo.RemoteClientVo;
|
||||||
import org.dromara.system.saas.domain.vo.SysSaasClientVo;
|
import org.dromara.system.service.ISysClientService;
|
||||||
import org.dromara.system.saas.service.ISysSaasClientService;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -19,15 +19,15 @@ import org.springframework.stereotype.Service;
|
|||||||
@DubboService
|
@DubboService
|
||||||
public class RemoteClientServiceImpl implements RemoteClientService {
|
public class RemoteClientServiceImpl implements RemoteClientService {
|
||||||
|
|
||||||
private final ISysSaasClientService sysSaasClientService;
|
private final ISysClientService clientService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据客户端id获取客户端详情
|
* 根据客户端id获取客户端详情
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public RemoteClientVo queryByClientId(String clientId) {
|
public RemoteClientVo queryByClientId(String clientId) {
|
||||||
SysSaasClientVo vo = sysSaasClientService.queryByClientId(clientId);
|
SysClientVo vo = clientService.queryByClientId(clientId);
|
||||||
return MapstructUtils.convert(vo, RemoteClientVo.class);
|
return BeanUtil.copyProperties(vo, RemoteClientVo.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -38,6 +38,7 @@ sa-token:
|
|||||||
sso-client:
|
sso-client:
|
||||||
# SSO-Server 端主机地址
|
# SSO-Server 端主机地址
|
||||||
server-url: http://sa-sso-server.com:19000
|
server-url: http://sa-sso-server.com:19000
|
||||||
|
# SSO-client 前端地址
|
||||||
auth-url: http://sa-sso-server.com:8701/?mode=ticket#/sso-login
|
auth-url: http://sa-sso-server.com:8701/?mode=ticket#/sso-login
|
||||||
# SSO-Server 端校验ticket地址
|
# SSO-Server 端校验ticket地址
|
||||||
check-ticket-url: http://ruoyi-sso-server:19000
|
check-ticket-url: http://ruoyi-sso-server:19000
|
||||||
|
|||||||
@ -38,6 +38,7 @@ sa-token:
|
|||||||
sso-client:
|
sso-client:
|
||||||
# SSO-Server 端主机地址
|
# SSO-Server 端主机地址
|
||||||
server-url: http://sa-sso-server.com:19000
|
server-url: http://sa-sso-server.com:19000
|
||||||
|
# SSO-client 前端地址
|
||||||
auth-url: http://sa-sso-server.com:8701/?mode=ticket#/sso-login
|
auth-url: http://sa-sso-server.com:8701/?mode=ticket#/sso-login
|
||||||
# SSO-Server 端校验ticket地址
|
# SSO-Server 端校验ticket地址
|
||||||
check-ticket-url: http://ruoyi-sso-server:19000
|
check-ticket-url: http://ruoyi-sso-server:19000
|
||||||
|
|||||||
@ -34,9 +34,7 @@ spring:
|
|||||||
- id: ruoyi-h5
|
- id: ruoyi-h5
|
||||||
uri: lb://ruoyi-h5
|
uri: lb://ruoyi-h5
|
||||||
predicates:
|
predicates:
|
||||||
- Path=/ruoyi-h5/**
|
- Path=/h5/**
|
||||||
filters:
|
|
||||||
- StripPrefix=1
|
|
||||||
|
|
||||||
# 安全配置
|
# 安全配置
|
||||||
security:
|
security:
|
||||||
@ -63,4 +61,3 @@ security:
|
|||||||
tenant:
|
tenant:
|
||||||
# 是否开启
|
# 是否开启
|
||||||
enable: true
|
enable: true
|
||||||
|
|
||||||
|
|||||||
@ -88,9 +88,6 @@ tenant:
|
|||||||
- sys_client
|
- sys_client
|
||||||
- sys_oss_config
|
- sys_oss_config
|
||||||
- sys_saas_menu
|
- sys_saas_menu
|
||||||
- sys_saas_tenant
|
|
||||||
- sys_saas_tenant_package
|
|
||||||
- sys_saas_application
|
|
||||||
- sys_saas_role_dept
|
- sys_saas_role_dept
|
||||||
- sys_saas_role_menu
|
- sys_saas_role_menu
|
||||||
- sys_saas_user_post
|
- sys_saas_user_post
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user