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

[distributed] distribute token #119

Open
Alice52 opened this issue May 31, 2020 · 0 comments
Open

[distributed] distribute token #119

Alice52 opened this issue May 31, 2020 · 0 comments
Assignees
Labels
Common Distributed Done Java java implement important than extend

Comments

@Alice52
Copy link
Owner

Alice52 commented May 31, 2020

分布式 session 流程

  1. 第一次登录, 生成 access_token 放入 cookie, 并将其绑定用户后存入 redis:

    • key: access_token, and setexpire time
    • value: user info
  2. 用户操作:

    • 从 redis 内获取 access_token[cookie] 对应的 user info
    • 能获取到就表示 登录有效
    • 否则就引导用户重新登录
  3. access_token 续期问题

    • 用户的任何需要认证的操作都会导致 access_token 的续期
  4. access_token 的更新问题

    • 用户修改自身信息 会导致 redis 内的user info 的更新
@Alice52 Alice52 added Java java implement important than extend TODO Common labels May 31, 2020
@Alice52 Alice52 self-assigned this May 31, 2020
@Alice52 Alice52 changed the title [distribute] distribute token [distributed] distribute token May 31, 2020
@Alice52 Alice52 added Done and removed TODO labels Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Common Distributed Done Java java implement important than extend
Projects
None yet
Development

No branches or pull requests

1 participant