1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/features
Thomas Heartman 80a2e1b93f
fix: reject API admin tokens when importing features (#4016)
This PR fixes an issue where trying to use an admin token to import
features via the API resulted in a 500 (due to missing properties).

The solution is to catch when the user is using and admin token in the
controller, throw a 400, and tell them to use personal access tokens or
service accounts.

The PR includes a new test file for this specific use case. We don't
really test these cases many other places, so it seemed the logical
choice.
2023-06-20 12:57:59 +00:00
..
access feat: custom root roles (#3975) 2023-06-14 14:40:40 +01:00
change-request-access-service feat: disallow clone toggle on change request enabled (#3383) 2023-03-27 13:21:50 +02:00
export-import-toggles fix: reject API admin tokens when importing features (#4016) 2023-06-20 12:57:59 +00:00
feature-toggle feat: custom root roles (#3975) 2023-06-14 14:40:40 +01:00
playground feat: Query complexity validation (#4017) 2023-06-20 14:28:02 +02:00
project feat: Create project service di (#3326) 2023-03-15 16:46:41 +01:00
index.ts refactor: read model for change request access checking (#3380) 2023-03-24 14:31:43 +01:00