Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImre Farkas <ifarkas@gitlab.com>2018-11-08 18:03:56 +0300
committerImre Farkas <ifarkas@gitlab.com>2018-11-12 14:16:25 +0300
commitf3cd24a9f3f581488d621475e55e3a81bbd9e67c (patch)
tree66266d4ae8b2864a2e8423f7e8022483c357ccb9 /doc/api/users.md
parent369631c84195f6b8b26624d5647ae994e64b77e8 (diff)
Display impersonation token value only after creation
Since we migrated all PersonlAccessTokens to store only its hash in the DB, the token value can no longer be shown to the user.
Diffstat (limited to 'doc/api/users.md')
-rw-r--r--doc/api/users.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/api/users.md b/doc/api/users.md
index ee24aa09156..e3633c46041 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -1072,7 +1072,6 @@ Example response:
[
{
"active" : true,
- "token" : "EsMo-vhKfXGwX9RKrwiy",
"scopes" : [
"api"
],
@@ -1089,7 +1088,6 @@ Example response:
"read_user"
],
"revoked" : true,
- "token" : "ZcZRpLeEuQRprkRjYydY",
"name" : "mytoken2",
"created_at" : "2017-03-17T17:19:28.697Z",
"id" : 3,
@@ -1125,7 +1123,6 @@ Example response:
```json
{
"active" : true,
- "token" : "EsMo-vhKfXGwX9RKrwiy",
"scopes" : [
"api"
],
@@ -1142,6 +1139,8 @@ Example response:
> Requires admin permissions.
+> Token values are returned once. Make sure you save it - you won't be able to access it again.
+
It creates a new impersonation token. Note that only administrators can do this.
You are only able to create impersonation tokens to impersonate the user and perform
both API calls and Git reads and writes. The user will not see these tokens in their profile