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

Session mechanism #349

Open
mdouchement opened this issue Jun 30, 2021 · 0 comments
Open

Session mechanism #349

mdouchement opened this issue Jun 30, 2021 · 0 comments

Comments

@mdouchement
Copy link
Collaborator

Currently JWT tokens with revoke strategy is used but there is no refresh of this token.
We should move to a Session mechanism:

  • access_token that expires after 30 days (must be configurable)
    • Provided in the Authorization header in PASETO format
  • refresh_token that expires after 1 year (must be configurable)
  • All session must be stored in database like app/models/access_token.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant