# SpringBoot-OAuth2-SSO **Repository Path**: zengxiaoyan94/SpringBoot-OAuth2-SSO ## Basic Information - **Project Name**: SpringBoot-OAuth2-SSO - **Description**: SpringBoot-OAuth2-SSO 从githup copy 过来,对readme做了补充 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-08-14 - **Last Updated**: 2023-06-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cjs-oauth2-sso-demo OAuth2 SSO ## 原文: https://www.cnblogs.com/cjsblog/p/10548022.html 原作者githup https://github.com/chengjiansheng/cjs-oauth2-sso-demo ## 需要资源 * 1.需要mysql数据库 * 2.需要redis ## 玩法 * 1.数据库准备 ```html (1)创建一个permission数据库 (2)执行sql脚本,文件位置oauth2-sso-auth-server/resources/permission.sql ``` * 2.把3个项目都启动起来 * 3.具体的玩法 ```html (1) 浏览器访问 http://localhost:8083/orderSystem/order/list 由于没有登录,重定向到localhost:8080 去登录; 输入账号admin 密码admin进行登录; 登录后,回到orderSystem (2) 浏览器访问 http://localhost:8082/memberSystem/member/list 由于上一步已经去授权平台登录了,这里就不需要重新登录; 这就是sso ``` ## 重点 ```html sso里面的重点就是子系统需要登录时,是重定向去平台登录。 重定向是个关键 ```