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 | ||
Error |
How to set up and validate locally
- In the Admin Area > Overview > Users choose one user
- Select
Impersonation Tokens
tab, for example: https://gdk.test:3443/admin/users/merle_schinner/impersonation_tokens - 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Eduardo Sanz García