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

Create command to revoke tokens #59

Closed
18 tasks done
Syndesi opened this issue Sep 3, 2023 · 0 comments
Closed
18 tasks done

Create command to revoke tokens #59

Syndesi opened this issue Sep 3, 2023 · 0 comments
Labels
Feature Introducing new capabilities.
Milestone

Comments

@Syndesi
Copy link
Member

Syndesi commented Sep 3, 2023

Different options should be implemented:

  • Revoke all tokens.
  • Revoke all tokens of a specific user or group.
  • Revoke all tokens created before/after a specific date.
  • Revoke all tokens with no expire date.
  • Revoke all tokens with an expire date.

Revoking tokens must include:

  • Marking the token as revoked.
    • Todo: How? Setting token.isRevoked to true? Or token.status to revoked?
      • State ACTIVE: Token works normally.
      • State REVOKED: Token is manually deactivated but not deleted.
      • State EXPIRED: Currently unused state for tokens which are expired.
  • Revoked tokens must be removed from Redis.

Feature tests:

  • Iterate over all options.
    • Check that existing tokens work.
    • Check that those tokens can be revoked.
    • Check that revoked tokens no longer work.

Example generation:

  • One case should be automatically generated.

Documentation:

  • Command should be documented.

Related work:

  • When tokens are initially put into Redis, their lifetime should be limited to min( (now + 30min) , tokenValidUntilTimestamp ).
@Syndesi Syndesi converted this from a draft issue Sep 3, 2023
@Syndesi Syndesi added this to the 0.1.0 milestone Sep 3, 2023
Syndesi added a commit that referenced this issue Sep 26, 2023
- Test command, closes #59.
@Syndesi Syndesi moved this from Todo to In Merge in API Feature Progress Sep 26, 2023
@Syndesi Syndesi moved this from In Merge to Research in API Feature Progress Sep 26, 2023
@Syndesi Syndesi moved this from Research to Todo in API Feature Progress Sep 26, 2023
@Syndesi Syndesi moved this from Todo to In Progress in API Feature Progress Oct 29, 2023
Syndesi added a commit that referenced this issue Dec 1, 2023
Rename command `user:token:create` to `token:create`, related to #59.
Syndesi added a commit that referenced this issue Dec 16, 2023
@Syndesi Syndesi moved this from In Progress to In Merge in API Feature Progress Dec 16, 2023
@github-project-automation github-project-automation bot moved this from In Merge to Done in API Feature Progress Dec 16, 2023
@Syndesi Syndesi added the Feature Introducing new capabilities. label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Introducing new capabilities.
Projects
Status: Done
Development

No branches or pull requests

1 participant