Skip to content

WIP: Manage Personal Access Tokens using the API

Sanad Liaquat requested to merge shl-access-token-api-spike into master

What does this MR do?

Add API to allow:

  • Admin users to create, view, list and revoke a Personal Access Token for any user.
  • A logged-in users to create, view, list and revoke a Personal Access Token for themselves.

TODO:

  • Add tests
  • Add documentation

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Sanad Liaquat

Merge request reports