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.
References
- Admin Token: Identify SCIM Tokens (#512768)
- Admin Token API (&15777)
- Token Information API Documentation
How to set up and validate locally
- Follow the instructions on how to test the existing prefix for SCIM tokens.
- Create
instanceandgroupscim tokens as described above. - Create a
personal access tokenwithadmin_modeandapicapabilities.Preferences > Access Tokens > Add a new tokento query thetoken information api. - 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:
- Enable the feature flag:
Feature.enable(:custom_prefix_for_all_token_types)- Rotate the tokens so that they start with the new prefix.
- Query the tokens again.
MR acceptance checklist
checklist
- Changelog entry added, if necessary
- Documentation created/updated via this MR
- Documentation reviewed by technical writer or follow-up review issue created
- Tests added for this feature/bug
- Tested in all supported browsers
- Conforms to the code review guidelines
- Conforms to the merge request performance guidelines
- Conforms to the style guides
- Conforms to the javascript style guides
- Conforms to the database guides
Related to #512768
Edited by Nicholas Wittstruck