JeeCG 改造后源码

PIG 整合前后端分离项目登录

添加OAuth客户端配置:

INSERT INTO `pig`.`sys_oauth_client_details`(
  `client_id`, `resource_ids`, `client_secret`, 
  `scope`, `authorized_grant_types`, 
  `web_server_redirect_uri`, `authorities`, 
  `access_token_validity`, `refresh_token_validity`, 
  `additional_information`, `autoapprove`, 
  `create_time`, `update_time`, 
  `create_by`, `update_by`
) VALUES (
  'jeecg-boot', '', 'jeecg-boot', 
  'server', 'authorization_code', 
  'http://127.0.0.1:3100/sso', '', 
  168000000, 168000000, 
  '', 'false', 
  '2023-01-17 08:31:46', '2023-01-17 09:32:06', 
  'admin', 'admin'
);

后端配置

  • 配置 JeeCG-Boot 前端地址(默认 3100 端口)
  • 配置 PIG 网关地址
1

增加 SSO 配置

2

增加登录方式

前端配置

前端项目地址:JeeCG Boot Vue3

1

登录页面配置

2

增加 SSO 页面

此页面用于处理回调和Code参数
3

退出系统配置

获取支持

遇到问题?

如果您在使用过程中遇到任何问题、有功能建议或需求,请前往 Gitee 仓库提交 Issue。