Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add double token support for seata netty communication authentication #6913

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

Muluo-cyan
Copy link
Contributor

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

Client注册RM与TM的同步请求与异步请求现在支持jwt authentication, 采用双token(accessToken和refreshToken)方案

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

配置raft集群信息,启动seata server的raft集群
下载seata-samples/at-samples,配置对应的raft集群,配置便于测试的token有效时间
启动客户端
验证Client注册RM与TM:查看RM和TM在客户端启动时的注册情况,可以修改seata-samples的代码,添加一个create RM的代码,根据配置的token有效期,在不同时间查看注册RM的鉴权流程。(首次注册使用用户名密码,登录成功获取access token和refresh token,在access token有效期内注册使用access token,access token即将过期或者已经过期时,使用refresh token刷新获取新的access token,refresh token过期后重新登录获取新的access token和refresh token)

Ⅴ. Special notes for reviews

@Muluo-cyan Muluo-cyan force-pushed the CSReg branch 3 times, most recently from 06cbe49 to d78b659 Compare October 11, 2024 04:40
Copy link
Member

@linghengqian linghengqian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have time to rebase from master? There are too many conflicts in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants