diff --git a/sa-token-doc/oauth2/oauth2-interworking.md b/sa-token-doc/oauth2/oauth2-interworking.md index d231f2fc..16da2bc7 100644 --- a/sa-token-doc/oauth2/oauth2-interworking.md +++ b/sa-token-doc/oauth2/oauth2-interworking.md @@ -43,6 +43,14 @@ 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 值