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

REST API to create/delete API tokens + revoke API tokens when user is deleted #1875

Merged
merged 14 commits into from
Apr 2, 2023

Conversation

vboctor
Copy link
Member

@vboctor vboctor commented Mar 26, 2023

This PR fixes the following issues:

  • 32245: REST API for creating API tokens for users
  • 32247: REST API for deleting API token
  • 32246: Deleting a user should revoke (delete) all their API tokens

Scenarios:

  • Admin that automates user creation + tokens for such users.
  • Testing where an admin token can create token for a reporter, update, manager, etc and use these tokens for test cases.
  • User wants to create automation to create token, leverage it for a purpose, and then delete it without disclosing their master long living token.

@vboctor vboctor self-assigned this Mar 26, 2023
@vboctor vboctor changed the title REST API to create API tokens + revoke API tokens when user is deleted REST API to create/delete API tokens + revoke API tokens when user is deleted Mar 26, 2023
@vboctor vboctor merged commit 7ac2e8e into mantisbt:master Apr 2, 2023
@vboctor vboctor added the api Pull requests that are related to APIs label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Pull requests that are related to APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants