File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11!!! Abstract ""
2+ 本文假设需要将DataEase嵌入第三方业务系统(简称A系统)。
3+
4+ 有时受限于实际情况,比如企业内部未搭建 SS0 系统,这时可以使用模拟登录方式实现嵌入式用户登录集成
5+
26 模拟登录指:A 系统后台请求 DataEase 的登录接口,将登录成功的 Token 写入 LocalStorage 中,来模拟用户登录的过程,省去用户自己输入密码登录的过程。
37
48 模拟登录又分同域和跨域两种方式,文章中会详细介绍。
59
6- 但有时受限于实际情况,比如没有搭建 SSO 系统,这时则可使用模拟登录方式,需要做一些开发,同样可以实现集成。
7-
810## 1 模拟登录方案介绍
911!!! Abstract ""
1012 DataEase 的认证 token 是放在 LocalStorage 里面的,调用 /de2api/login/localLogin 接口可以拿到 Token 信息。关键问题在于怎么将 DataEase 的认证信息放到 LocalStorage 里面去。根据处理方案的不同,分为同域模拟登陆和跨域模拟登陆。
1618## 2 同域模拟登陆
1719
1820### 2.1 流程描述
19- ![ 5.2模拟登录(1).png ] ( ../img/embedded/5.2模拟登录(1).png ) { width="900px" }
21+ ![ 同域.pic.jpg ] ( ../img/embedded/同域.pic.jpg ) { width="900px" }
2022!!! Abstract ""
2123 1. 用户登录 A 系统
2224 2. 用户在 A 系统中通过 Iframe 访问 A 系统的模拟登录接口
3739
3840### 3.1 流程描述
3941
40- ![ 5.2模拟登录(4).png ] ( ../img/embedded/5.2模拟登录(4).png ) { width="900px" }
42+ ![ 跨域.pic.jpg ] ( ../img/embedded/跨域.pic.jpg ) { width="900px" }
4143!!! Abstract ""
4244 1. 用户登录 A 系统
4345 2. 用户在 A 系统中通过 Iframe 访问 A 系统的模拟登录接口
You can’t perform that action at this time.
0 commit comments