Skip to content

Admin Token API: Identify Feature Flags client token

What does this MR do and why?

This MR adds identification of feature flags client token to the Admin Token API.

🛠️ with ❤️ at Siemens

References

MR acceptance checklist

checklist

How to set up and validate locally

  1. You'll need to create a personal access token to access the token and get an feature flag client token that you'd like to query:

    1. Create a personal access token with admin_mode and api capabilities. Preferences > Access Tokens > Add a new token
    2. You'll need feature flag client token of a project. Access it from any project from Deploy > Feature flags > Configure. The Instance ID listed is the token. It should start with glffct.
  2. Now you can retrieve information about this 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": "glffct-token-from-step-2.2"}'
{
	"id": 68,
	"project_id": 22
}

Related to #512283 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading