Skip to content

Enable impersonation token via AJAX

What does this MR do and why?

Display the newly created impersonation token without the need of reloading the page. This prevents the need of storing the new access token in Redis.

  • First commit: small change in a Vue component to display extra information
  • Second commit: changes to enable the AJAX

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/365242

Epic: https://gitlab.com/gitlab-org/gitlab/-/issues/365241+

Screenshots or screen recordings

Before After
Success image image
Error image image

How to set up and validate locally

  1. In the Admin Area > Overview > Users choose one user
  2. Select Impersonation Tokens tab, for example: https://gdk.test:3443/admin/users/merle_schinner/impersonation_tokens
  3. Create and delete impersonation tokens

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eduardo Sanz García

Merge request reports

Loading