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

Add 'last-used' to API tokens #722

Closed
3 tasks done
amberrignell opened this issue Mar 22, 2023 · 1 comment
Closed
3 tasks done

Add 'last-used' to API tokens #722

amberrignell opened this issue Mar 22, 2023 · 1 comment
Assignees

Comments

@amberrignell
Copy link
Contributor

amberrignell commented Mar 22, 2023

User story

As a user that is concerned with security, I would like to see when my API token was last-used, so that I can make sure I am the only one using it.

As a user that is getting rid of old API tokens, I would like to see when they were last used, so that I can assess whether it is safe to delete them.

Details

Add a 'last-used' column to the API tokens table in Profile>API tokens.

Implementation notes

Release notes

User acceptance criteria

  • When I create a token, the last-used column says 'never'
  • When I make a GET, POST or PUT request with a token, the last-used column gets updated to the time of my request.
  • If I make a POST request that has a valid token but invalid data (ex: 400), the last-used time is still updated.
@amberrignell amberrignell self-assigned this Mar 22, 2023
@mtuchi mtuchi mentioned this issue Mar 29, 2023
8 tasks
@amberrignell
Copy link
Contributor Author

Closed by #701

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

No branches or pull requests

1 participant