修改demo说明

This commit is contained in:
zlt2000
2021-11-28 15:46:53 +08:00
parent fd33bf0c5b
commit 2d3ab129d2
4 changed files with 29 additions and 15 deletions
+11 -6
View File
@@ -1,5 +1,7 @@
## **详细的原理和注意事项请查看**
[前后端分离的单点登录](https://www.kancloud.cn/zlt2000/microservices-platform/2278850)
- [前后端分离的单点登录](https://www.kancloud.cn/zlt2000/microservices-platform/2278850)
- [单点登出详解](https://www.kancloud.cn/zlt2000/microservices-platform/2539642)
@@ -7,7 +9,8 @@
```sql
update oauth_client_details set
authorized_grant_types = 'authorization_code,password,refresh_token',
web_server_redirect_uri = 'http://127.0.0.1:8081/callback.html'
web_server_redirect_uri = 'http://127.0.0.1:8081/callback.html',
additional_information = '{"LOGOUT_NOTIFY_URL_LIST":"http://127.0.0.1:8081/logoutNotify"}'
where client_id = 'app'
```
@@ -18,14 +21,16 @@ where client_id = 'app'
1. zlt-uaa:统一认证中心
2. user-center:用户服务
3. sc-gateway:api网关
4. ss-sso:单点登录demo(zlt应用)
4. oidc-sso:单点登录demo(webApp应用)
5. web-sso:单点登录demo(app应用)
## 测试步骤
1. 登录zlt应用:
通过地址 http://127.0.0.1:8080 先登录zlt应用
1. 登录webApp应用:
通过地址 http://127.0.0.1:8082 先登录webApp应用
2. 访问app应用(单点成功):
在浏览器打开一个新的页签(共享session),通过地址 http://127.0.0.1:8081/index.html 访问app应用静态页面,单点登录成功显示当前登录用户名、应用id、token信息
在浏览器打开一个新的页签(共享session),通过地址 http://127.0.0.1:8081 访问app应用静态页面,单点登录成功显示当前登录用户名、应用id、token信息
3. 再次切换回webApp应用 http://127.0.0.1:8082 页面点击登出按钮,登出webApp应用
4. 回来app应用 http://127.0.0.1:8081 刷新页面,返回登录页面(单点登出成功)