Add a management command for invalidating tokens

Review Request #12481 — Created July 21, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

This change adds an rb-site manage /path/to/site invalidate-api-tokens command
that allows administrators to invalidate the API tokens for a set of users. Now
tokens can be invalidated individually via the API, or in batch with this
command.

Manually tested the command and checked that the right tokens were
being invalidated.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

orig
1
2
3

Commits

First Last Summary ID Author
Add a management command for invalidating tokens
abff830ead0168987e64523665dc7947666e022e Michelle Aubin
docs/manual/admin/sites/management-commands.rst
reviewboard/webapi/management/__init__.py
reviewboard/webapi/management/commands/__init__.py
reviewboard/webapi/management/commands/invalidate-api-tokens.py
Loading...