Admin Token API: Identify Incoming Email Tokens
Merged
requested to merge gitlab-community/gitlab:512033-nwittstruck-admin-token-api-post-incoming-email-token into master
This MR adds support for identifying incoming email tokens to the Admin Token API.
You'll need to create a personal access token
to access the token and get an incoming mail token
token that you'd like to query:
personal access token
with admin_mode
and api
capabilities. Preferences > Access Tokens > Add a new token
rails console
:User.last.incoming_email_token
curl -k --request POST \
--url 'https://gdk.test:3443/api/v4/admin/token' \
--header 'Authorization: Bearer <Admin Token from Step 2.1>' \
--header 'Content-Type: application/json' \
--data '{"token": "glimt-token-from-step-2.2"}'
{
"id": 68,
"username": "reported_user_22",
"name": "Diann Turcotte",
"state": "active",
...
}
Related to #512033 (closed)