MCPcopy Index your code
hub / github.com/a466350665/smart-sso

github.com/a466350665/smart-sso @2.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.1.1 ↗ · + Follow
1,860 symbols 4,322 edges 221 files 270 documented · 15% updated 3mo ago1.6.0 · 2024-07-11★ 2,30146 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

smart-sso

License PRs Welcome GitHub stars GitHub forks

QQ交流群:454343484🈵、769134727

简述

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

相关文档

组织结构

smart-sso
├── smart-sso-client -- 客户端依赖包
├── smart-sso-client-redis -- 客户端依赖包,分布式redis支持
├── smart-sso-demo -- 客户端
├── smart-sso-server -- 服务端

技术选型

  • JDK:1.8+
  • 项目构建工具:Maven 3.3.3
  • MVC框架:SpringBoot 2.1.0.RELEASE
  • JSON工具:Fastjson 1.2.69
  • 日志管理:SLF4J 1.7.21
  • 单点登录:基于Oauth2协议实现

单点登录原理

在这里插入图片描述

单点退出原理

在这里插入图片描述

效果展示

单点登录页

在这里插入图片描述

服务端登录成功页

在这里插入图片描述

客户端登录成功页

Extension points exported contracts — how you extend this code

ExpirationPolicy (Interface)
有效期限管理器 @author Joe [8 implementers]
smart-sso-server/src/main/java/com/smart/sso/server/common/ExpirationPolicy.java
SessionMappingStorage (Interface)
借鉴CAS @author Joe [4 implementers]
smart-sso-client/src/main/java/com/smart/sso/client/session/SessionMappingStorage.java
Expiration (Interface)
含时效 @author Joe [7 implementers]
smart-sso-server/src/main/java/com/smart/sso/server/common/Expiration.java
UserService (Interface)
用户服务接口 @author Joe [4 implementers]
smart-sso-server/src/main/java/com/smart/sso/server/service/UserService.java
AppService (Interface)
应用服务接口 @author Joe [2 implementers]
smart-sso-server/src/main/java/com/smart/sso/server/service/AppService.java
RefreshTokenManager (Interface)
刷新凭证refreshToken管理抽象 @author Joe [2 implementers]
smart-sso-server/src/main/java/com/smart/sso/server/session/RefreshTokenManager.java

Core symbols most depended-on inside this repo

get
called by 667
smart-sso-client/src/main/java/com/smart/sso/client/util/HttpUtils.java
remove
called by 355
smart-sso-server/src/main/java/com/smart/sso/server/session/AccessTokenManager.java
jQuery
called by 125
smart-sso-server/src/main/resources/static/assets/js/jquery.js
jQuery
called by 48
smart-sso-server/src/main/resources/static/assets/js/jquery1x.js
callback
called by 41
smart-sso-server/src/main/resources/static/assets/js/bootstrap.js
init
called by 39
smart-sso-client/src/main/java/com/smart/sso/client/SmartContainer.java
factory
called by 37
smart-sso-server/src/main/resources/static/assets/js/dataTables/extensions/ColVis/js/dataTables.colVis.js
index
called by 37
smart-sso-demo/src/main/java/com/smart/sso/demo/controller/AppController.java

Shape

Function 1,589
Method 210
Class 51
Interface 9
Enum 1

Languages

TypeScript85%
Java15%

Modules by API surface

smart-sso-server/src/main/resources/static/assets/js/fullcalendar.js181 symbols
smart-sso-server/src/main/resources/static/assets/js/dataTables/jquery.dataTables.js152 symbols
smart-sso-server/src/main/resources/static/assets/js/jqGrid/jquery.jqGrid.src.js96 symbols
smart-sso-server/src/main/resources/static/assets/js/jquery1x.js84 symbols
smart-sso-server/src/main/resources/static/assets/js/jquery.js79 symbols
smart-sso-server/src/main/resources/static/assets/js/date-time/moment.js73 symbols
smart-sso-server/src/main/resources/static/assets/js/flot/jquery.flot.js60 symbols
smart-sso-server/src/main/resources/static/assets/js/typeahead.jquery.js47 symbols
smart-sso-server/src/main/resources/static/assets/js/jquery-ui.js40 symbols
smart-sso-server/src/main/resources/static/assets/js/ace.js40 symbols
smart-sso-server/src/main/resources/static/assets/js/select2.js36 symbols
smart-sso-server/src/main/resources/static/assets/js/date-time/bootstrap-datetimepicker.js33 symbols

For agents

$ claude mcp add smart-sso \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact