222 Star 683 Fork 272

a466350665 / smart-sso

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

smart-sso

License PRs Welcome GitHub stars GitHub forks

QQ交流群:454343484🈵、769134727

简述

   smart-sso使用当下最流行的SpringBoot技术,基于OAuth2认证授权协议,为您构建一个轻量级、易理解、高可用、高扩展性的分布式单点登录应用基础。

相关文档

组件结构

smart-sso
├── smart-sso-demo1 -- 客户端示例1
├── smart-sso-demo2 -- 客户端示例2
├── smart-sso-server -- 服务端
├── smart-sso-starter -- 依赖装配模块
   ├── smart-sso-starter-base -- 公用的基础依赖装配
   ├── smart-sso-starter-client -- 客户端依赖装配
   ├── smart-sso-starter-client-redis -- 客户端依赖装配,分布式部署场景redis支持
   ├── smart-sso-starter-server -- 服务端依赖装配
   ├── smart-sso-starter-server-redis -- 服务端依赖装配,分布式部署场景redis支持

依赖关系

技术选型

技术 版本 说明
spring-boot 2.5.13 容器 + MVC框架
spring-boot-starter-data-redis 2.5.13 分布式场景Token管理
httpclient 4.5.13 授权码认证,客户端和服务端通信

功能说明

  1. 轻量级: 借鉴业界CAS原理,基于SpringBoot和OAuth2协议的极简实现;

  2. 跨域支持: 服务端和客户端都支持不同域名的跨域单点登录访问机制;

  3. 分布式部署: 服务端和客户端都支持多实例部署场景,基于redis实现分布式Token管理;

  4. 高度扩展性: 服务端实现的简化版OAuth2协议和Token管理机制都允许自定义扩展覆盖。

单点登录原理

单点退出原理

效果展示

服务端登录页

客户端示例1登录成功页

客户端示例2登录成功页

MIT License Copyright (c) 2020 Joe 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.

简介

SpringBoot SSO 单点登录,轻量级,OAuth2实现,支持跨域,支持分布式 展开 收起
Java 等 2 种语言
MIT
取消

发行版 (1)

全部

贡献者

全部

近期动态

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

搜索帮助