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 DELETE /api/v1/users/$USER/tokens #7788

Open
1 task done
teodesian opened this issue Aug 19, 2024 · 0 comments
Open
1 task done

Add DELETE /api/v1/users/$USER/tokens #7788

teodesian opened this issue Aug 19, 2024 · 0 comments
Labels
🎯 feature Categorizes as related to a new feature

Comments

@teodesian
Copy link

Describe the feature

Add an API v1 endpoint, DELETE /users/$USER/tokens which allows users to delete tokens by SHA1.

This would enable interesting workflows for tooling such as securely prompting the user for a password, and then making a key which will be deleted after the tool's session ends.

Describe the solution you'd like

I have provided a working PR here:
#7787

Describe alternatives you've considered

I suppose I could scrape the frontend with playwright, but that's probably more code ultimately.

Additional context

I'm currently building such a tool requiring this functionality so I had to scratch this itch.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@teodesian teodesian added the 🎯 feature Categorizes as related to a new feature label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 feature Categorizes as related to a new feature
Projects
None yet
Development

No branches or pull requests

1 participant