1 Star 0 Fork 123

AllenYuanzl / sso

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

SSO Build Status GitHub license GitHub issues

打造一个单点登录平台,其中包括以下子系统

  • CAS SERVER
  • 配置中心
  • 服务管理系统
  • 监控平台
  • 客户端集成(cas client、pac4j、shiro)

并且在博客中记录整个搭建过程以及注意事项,目前教程如下:

目前教程

监控系统

特性

  • Docker快速启动
  • GitHub授权登录
  • Cas Clint、Shiro Pac4j Client集成
  • jdbc用户密码加密
  • 自定义主题
  • 配置统一管理
  • 根据官网5.1.x新版本迭代
  • 各阶段发布博客教程
  • 密码管理
  • 一键启动
  • 第三方登录接入(QQ,WeChat,CSDN,GitHub)
  • 绑定用户
  • 验证码输出
  • 自定义校验器
  • 多属性返回
  • 验证码发送、校验(注册发送邮箱验证码)
  • 服务监控检测
  • 校验码登录
  • 单用户登录

Tutorial: Csdn Blog Tutorial

域名:localhost

用户:

用户名 密码 是否可登录 备注
admin 123
zhangsan 12345678
zhaosi 1234 × 禁用
wangwu 12345 需修改密码

Docker 快速启动

目前仅部署了配置中心及cas服务到docker环境中

docker run -d --restart=always  -p 8443:8443 kawhii/sso

若采用docker启动,访问为:http://dockerip:8443/cas

注意

  • 由于修改密码功能目前是发送到笔者的邮箱,若调整,需要修改sso-server/src/main/resources/profile/dev/sql/data-dev.sql
  • 密码修改功能可以关闭问题回答功能

模块介绍

模块名 模块介绍 端口情况 必须https path 启动循序
sso-server cas服务 8443 cas 2
sso-config 配置中心 8888 × config 1
sso-management service管理 8081 × cas-management 3
sso-cas-client-demo cas-client-demo 8080 × /sample 4
sso-client-shiro-demo shiro-client-demo 8083 × / 5
sso-client-proxy-demo OAuth2代理转发客户端 8808 × / 6
sso-monitor 监控服务 8444 × / 7

代码下载 码云 Github

  1. 每一个阶段都会封版打一个tag,需要的进行下载
  2. 原始构建文件存在于original-files目录下

Development Dependency Status codebeat badge

  • jdk8
  • maven3

帮助

build.cmd help

输出以下帮助信息

"Usage: build.bat [help|sso-server|sso-management|sso-config|cas-client-demo|shiro-client-demo|run-all|hosts]"
1. sso-config: Config Server
2. sso-server: CAS Server
3. sso-management: Cas Management
4. cas-client-demo: CasClient Demo
5. shiro-client-demo: ShiroDemo
6. run: Run all server
7. init: set '127.0.0.1 passport.sso.cm' to HOSTS, import cert to D:\soft\work\java\jdk1.8-144\jre\lib\security\cacerts

初始化

build.cmd init

启动服务

由于启动服务多,开始占用CPU、内容稍高

build.cmd run
#server-id 为上面的各服务名称,
#如启动sso-management为,build.cmd sso-management

build.cmd [server-id]

联系方式

如果技术的交流或者疑问可以联系或者提出issue。

邮箱:huang.wenbin@foxmail.com

QQ: 756884434 (请注明:SSO-github)

如果项目对你有技术上的提升、工作上的帮助或者一些启示,不妨请小编喝杯咖啡,小编更会满怀激情的为大家讲解和输出博文哦。

微信 支付宝

MIT License Copyright (c) 2017 huang.wenbin@foxmail.com 卡尔科技工作室 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

单点登录系统,在集群中充当认证、权限管理、账号管理的角色,对个系统进行统一认证。 包括以下子系统,CAS 服务、 配置中心、服务管理系统、监控平台、客户端集成、密码管理、开箱即用 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/AllenYuanzl/sso.git
git@gitee.com:AllenYuanzl/sso.git
AllenYuanzl
sso
sso
master

搜索帮助

14c37bed 8189591 565d56ea 8189591