Add SCIM support to Token Information API

What does this MR do and why?

Add SCIM support to Token Information API

This MR adds support for SCIM tokens to the Token Information API.

🛠️ with ❤️ at Siemens

References

How to set up and validate locally

  1. Follow the instructions on how to test the existing prefix for SCIM tokens.
  2. Create instance and group scim tokens as described above.
  3. Create a personal access token with admin_mode and api capabilities. Preferences > Access Tokens > Add a new token to query the token information api.
  4. Query the API:
curl -k --request POST \
--url 'https://gdk.test:3443/api/v4/admin/token' \
--header 'Authorization: Bearer <Admin Token>' \
--header 'Content-Type: application/json' \
--data '{"token": "glsoat-from-above"}'

You can also test that this works with enabled instance wide prefixes by:

  1. Enable the feature flag:
Feature.enable(:custom_prefix_for_all_token_types)
  1. Rotate the tokens so that they start with the new prefix.
  2. Query the tokens again.

MR acceptance checklist

checklist

Related to #512768

Edited by Nicholas Wittstruck

Merge request reports

Loading