Skip to content

Commit 4688f22

Browse files
committed
docs: synced via GitHub Actions
1 parent 6a1af04 commit 4688f22

File tree

2 files changed

+477
-0
lines changed

2 files changed

+477
-0
lines changed

src/dev-guide/auth/login.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,17 @@ authFilter中实际执行登录验证操作时使用的是ILoginService接口,
7575

7676
3. nop.auth.refresh-token-expire-seconds
7777
刷新令牌(refresh token)的超时时间,缺省为300\*60,即5个小时
78+
79+
## 会话并发开关
80+
81+
为了控制同一用户名是否允许同时存在多个登录会话,提供如下配置项:
82+
83+
- `nop.auth.login.allow-multiple-sessions-same-user`(缺省:false)
84+
85+
行为说明:
86+
- 当为 `false`(默认)时:用户再次登录会自动退出该用户名下的其他活动会话(在 `LoginServiceImpl.autoLogout` 中执行)。
87+
- 当为 `true` 时:允许同一用户名同时存在多个会话,登录时不会自动登出其他会话。
88+
89+
实现说明:
90+
- 该参数通过 `LoginServiceImpl` 中的 `@InjectValue("@cfg:nop.auth.login.allow-multiple-sessions-same-user|false")` 注入,属于启动时生效的静态配置,不支持运行时动态修改。
91+

0 commit comments

Comments
 (0)