docs: 优化需求提交文案

This commit is contained in:
click33
2026-03-11 14:15:55 +08:00
parent b81c61cc6f
commit 73df9def9e
2 changed files with 16 additions and 7 deletions

View File

@@ -43,13 +43,6 @@ public void configOAuth2Server(SaOAuth2ServerConfig oauth2Server) {
> 应该根据自己的架构合理分析是否应该整合数据互通。
**疑问:数据互通后,两个 token 的过期策略是什么?**
会话 token 由 `sa-token.timeout` 决定,`access_token` 由 `sa-token.oauth2-server.access-token-timeout` 决定。
数据互通只是将会话 token 拷贝了一份作为 access_token 使用,动作完成之后两者不再有任何联系。
### OAuth2-Client 数据互通
除了Server端Client端也可以打通 `access_token` 与 `satoken` 会话。做法是在 Client 端拿到 `access_token` 后进行登录时,使用 `SaLoginParameter` 预定登录生成的 Token 值
@@ -66,6 +59,13 @@ StpUtil.login(uid, new SaLoginParameter().setToken(access_token));
**疑问:数据互通后,两个 token 的过期策略是什么?**
会话 token 由 `sa-token.timeout` 决定,`access_token` 由 `sa-token.oauth2-server.access-token-timeout` 决定。
数据互通只是将 token 拷贝一份进行复用,动作完成之后两者不再有任何联系。