{"id":18249634,"url":"https://github.com/chandq/sso-demo","last_synced_at":"2025-07-11T15:16:10.012Z","repository":{"id":130689852,"uuid":"150936159","full_name":"chandq/sso-demo","owner":"chandq","description":"单点登录SSO，包括多客户端和服务端的demo实现","archived":false,"fork":false,"pushed_at":"2022-05-29T01:47:32.000Z","size":8715,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-08T20:25:00.204Z","etag":null,"topics":["client","java","server","sso"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chandq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-30T06:06:24.000Z","updated_at":"2022-01-11T05:53:47.000Z","dependencies_parsed_at":"2023-06-02T04:30:49.101Z","dependency_job_id":null,"html_url":"https://github.com/chandq/sso-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chandq/sso-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandq%2Fsso-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandq%2Fsso-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandq%2Fsso-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandq%2Fsso-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chandq","download_url":"https://codeload.github.com/chandq/sso-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandq%2Fsso-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264837897,"owners_count":23671117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","java","server","sso"],"created_at":"2024-11-05T09:40:45.956Z","updated_at":"2025-07-11T15:16:09.968Z","avatar_url":"https://github.com/chandq.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sso-demo\n\n## 简述\n   可跨域的单点登录实现。原理参考自[http://www.cnblogs.com/ywlaker/p/6113927.html](http://www.cnblogs.com/ywlaker/p/6113927.html)\n\t单点登录机制参考：http://www.cnblogs.com/ywlaker/p/6113927.html\n\t单点登录注销流程分析参考：https://www.jianshu.com/p/23f8e3958460\n\t为了让下载依赖的jar包的速度更快，maven项目可以设置阿里云的中心镜像仓库（maven目录/conf/settings.xml）：\n\t\u003cmirror\u003e\n\t\t\u003cid\u003ealimaven\u003c/id\u003e\n\t\t \u003cmirrorOf\u003ecentral\u003c/mirrorOf\u003e\n\t\t \u003cname\u003ealiyun maven\u003c/name\u003e\n\t\t \u003curl\u003ehttp://maven.aliyun.com/nexus/content/repositories/central/\u003c/url\u003e\n\t\u003c/mirror\u003e\n## 运行\n1. 将代码clone下来并导入Eclipse.\n2. 在mysql中运行项目的初始化脚本User.sql.\n3. 配置sso-server的数据库连接和redis连接，在jdbc.properties中.\n4. 通过mvn tomcat7:run启动sso-server,sso-client1和sso-client2项目.\n\n## 访问\nsso-client1 : http:localhost:8081/ssoclient1/user/info\n\nsso-client2 : http:localhost:8082/ssoclient2/user/info\n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchandq%2Fsso-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchandq%2Fsso-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchandq%2Fsso-demo/lists"}