Skip to content

Admin Token API: Add support for reading OAuth Application Secrets

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

What does this MR do and why?

This MR adds support for OAuth application secrets to the Admin Token API.

Issue: #443597 (closed)

🛠️ with ❤️ at Siemens

References

MR acceptance checklist

MR Checklist ( @nwittstruck)

How to set up and validate locally

  1. You'll need to create two new tokens:

    1. A personal access token with admin_mode and api capabilities.
    2. An oauth application secret that you can query.
  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 1.>' \
--header 'Content-Type: application/json' \
--data '{"token": "gloas-token-from-step-1-2"}'

Related to #443597 (closed)

Edited by Nicholas Wittstruck

Merge request reports

Loading