Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chandq/sso-demo
单点登录SSO,包括多客户端和服务端的demo实现
https://github.com/chandq/sso-demo
client java server sso
Last synced: about 1 month ago
JSON representation
单点登录SSO,包括多客户端和服务端的demo实现
- Host: GitHub
- URL: https://github.com/chandq/sso-demo
- Owner: chandq
- License: mit
- Created: 2018-09-30T06:06:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-29T01:47:32.000Z (over 2 years ago)
- Last Synced: 2024-11-05T09:49:28.983Z (3 months ago)
- Topics: client, java, server, sso
- Language: Java
- Homepage:
- Size: 8.31 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sso-demo
## 简述
可跨域的单点登录实现。原理参考自[http://www.cnblogs.com/ywlaker/p/6113927.html](http://www.cnblogs.com/ywlaker/p/6113927.html)
单点登录机制参考:http://www.cnblogs.com/ywlaker/p/6113927.html
单点登录注销流程分析参考:https://www.jianshu.com/p/23f8e3958460
为了让下载依赖的jar包的速度更快,maven项目可以设置阿里云的中心镜像仓库(maven目录/conf/settings.xml):
alimaven
central
aliyun maven
http://maven.aliyun.com/nexus/content/repositories/central/
## 运行
1. 将代码clone下来并导入Eclipse.
2. 在mysql中运行项目的初始化脚本User.sql.
3. 配置sso-server的数据库连接和redis连接,在jdbc.properties中.
4. 通过mvn tomcat7:run启动sso-server,sso-client1和sso-client2项目.## 访问
sso-client1 : http:localhost:8081/ssoclient1/user/infosso-client2 : http:localhost:8082/ssoclient2/user/info