1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi/spec
Fredrik Strand Oseberg 874d8459ce
Feat/add alias to api tokens (#1931)
* refactor: remove unused API definition routes

* feat: embed proxy endpoints

* feat: check token metadata for alias if none is found

* fix: rename param

* feat: add test for retrieving token by alias

* fix: update schema

* fix: refactor to alias

* fix: refactor to null

* fix: update snapshot

* fix: update openapi snapshot

* fix: add check to getUserForToken

* refactor: add more token alias tests

* refactor: use timingSafeEqual for token comparisons

Co-authored-by: olav <mail@olav.io>
2022-08-19 10:48:33 +02:00
..
__snapshots__ Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
addon-parameter-schema.ts
addon-schema.test.ts
addon-schema.ts feat: support filtering on project and environment fields for events (#1801) 2022-07-12 12:13:25 +00:00
addon-type-schema.ts
addons-schema.test.ts
addons-schema.ts
api-token-schema.test.ts Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
api-token-schema.ts Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
api-tokens-schema.ts
application-schema.ts
applications-schema.ts
change-password-schema.test.ts Task/open api reset password (#1740) 2022-06-22 14:31:41 +03:00
change-password-schema.ts Task/open api reset password (#1740) 2022-06-22 14:31:41 +03:00
client-application-schema.test.ts refactor: add schemas to client application registration (#1746) 2022-06-24 15:29:27 +02:00
client-application-schema.ts refactor: add schemas to client application registration (#1746) 2022-06-24 15:29:27 +02:00
client-feature-schema.ts refactor: use the same variant schema for the admin and client APIs (#1882) 2022-08-08 16:21:57 +02:00
client-features-query-schema.test.ts open api implementation - client features controller (#1745) 2022-06-30 12:54:14 +03:00
client-features-query-schema.ts fix: fix broken OpenAPI spec (#1846) 2022-07-28 09:19:58 +02:00
client-features-schema.test.ts refactor: use the same variant schema for the admin and client APIs (#1882) 2022-08-08 16:21:57 +02:00
client-features-schema.ts refactor: use the same variant schema for the admin and client APIs (#1882) 2022-08-08 16:21:57 +02:00
client-metrics-schema.test.ts OAS for client-api metrics.ts (#1753) 2022-06-30 13:27:12 +03:00
client-metrics-schema.ts OAS for client-api metrics.ts (#1753) 2022-06-30 13:27:12 +03:00
clone-feature-schema.ts
constraint-schema.test.ts
constraint-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
context-field-schema.test.ts refactor: remove bootstrap endpoint (#1900) 2022-08-09 15:58:27 +02:00
context-field-schema.ts
context-fields-schema.ts
create-api-token-schema.ts
create-feature-schema.ts
create-feature-strategy-schema.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
create-user-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
date-schema.ts OAS for client-api metrics.ts (#1753) 2022-06-30 13:27:12 +03:00
email-schema.test.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
email-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
environment-schema.ts
environments-schema.ts
event-schema.test.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
event-schema.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
events-schema.test.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
events-schema.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
export-query-parameters.ts fix: fix broken OpenAPI spec (#1846) 2022-07-28 09:19:58 +02:00
feature-environment-metrics-schema.ts OAS for client-metrics controller (#1739) 2022-06-27 11:17:44 +03:00
feature-environment-schema.test.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
feature-environment-schema.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
feature-events-schema.test.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
feature-events-schema.ts feat: add event search endpoint (#1893) 2022-08-09 16:14:50 +02:00
feature-metrics-schema.test.ts OAS for client-metrics controller (#1739) 2022-06-27 11:17:44 +03:00
feature-metrics-schema.ts OAS for client-metrics controller (#1739) 2022-06-27 11:17:44 +03:00
feature-schema.test.ts refactor: use the same variant schema for the admin and client APIs (#1882) 2022-08-08 16:21:57 +02:00
feature-schema.ts Added missing archivedAt to featureSchema (#1779) 2022-07-01 11:51:26 +00:00
feature-strategy-schema.ts open api implementation - client features controller (#1745) 2022-06-30 12:54:14 +03:00
feature-strategy-segment-schema.ts
feature-tag-schema.ts
feature-type-schema.test.ts
feature-type-schema.ts
feature-types-schema.ts
feature-usage-schema.test.ts OAS for client-metrics controller (#1739) 2022-06-27 11:17:44 +03:00
feature-usage-schema.ts OAS for client-metrics controller (#1739) 2022-06-27 11:17:44 +03:00
feature-variants-schema.ts
features-schema.test.ts
features-schema.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
feedback-schema.ts fix: fix broken OpenAPI spec (#1846) 2022-07-28 09:19:58 +02:00
group-schema.ts Grouping access endpoing (#1858) 2022-07-26 11:39:55 +00:00
group-user-model-schema.ts Fix/remove group owner concept (#1905) 2022-08-11 08:23:08 +02:00
groups-schema.test.ts Fix/remove group owner concept (#1905) 2022-08-11 08:23:08 +02:00
groups-schema.ts Feat/grouping (#1845) 2022-07-21 16:23:56 +02:00
health-check-schema.ts
health-overview-schema.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
health-report-schema.ts
id-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
legal-value-schema.ts
login-schema.ts refactor: add OpenAPI schema to simple-password-provider controller (#1734) 2022-06-23 08:40:25 +01:00
me-schema.test.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
me-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
name-schema.ts
override-schema.ts
parameters-schema.ts
password-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
patch-schema.ts
patches-schema.ts
permission-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
playground-constraint-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-feature-schema.test.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-feature-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-request-schema.test.ts feat: add playground API post endpoint (#1791) 2022-07-12 13:01:10 +02:00
playground-request-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-response-schema.test.ts feat: add all feature variants to the playground payload (#1835) 2022-07-20 08:54:34 +02:00
playground-response-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-segment-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-strategy-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
project-environment-schema.ts
project-schema.test.ts refactor: remove bootstrap endpoint (#1900) 2022-08-09 15:58:27 +02:00
project-schema.ts
projects-schema.ts
proxy-client-schema.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
proxy-feature-schema.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
proxy-features-schema.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
proxy-metrics-schema.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
reset-password-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
role-schema.test.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
role-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
sdk-context-schema.test.ts feat: add playground API post endpoint (#1791) 2022-07-12 13:01:10 +02:00
sdk-context-schema.ts fix: fix broken OpenAPI spec (#1846) 2022-07-28 09:19:58 +02:00
search-events-schema.ts feat: add event search endpoint (#1893) 2022-08-09 16:14:50 +02:00
segment-schema.ts open api implementation - client features controller (#1745) 2022-06-30 12:54:14 +03:00
set-strategy-sort-order-schema.test.ts Strategy sort order endpoint (#1855) 2022-07-26 14:16:30 +02:00
set-strategy-sort-order-schema.ts Strategy sort order endpoint (#1855) 2022-07-26 14:16:30 +02:00
sort-order-schema.test.ts
sort-order-schema.ts
splash-schema.ts
state-schema.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
strategies-schema.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
strategy-schema.test.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
strategy-schema.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
tag-schema.ts
tag-type-schema.ts Feat: OpenAPI controller - Bootstrap UI (#1773) 2022-06-30 12:21:40 +00:00
tag-types-schema.test.ts refactor: remove bootstrap endpoint (#1900) 2022-08-09 15:58:27 +02:00
tag-types-schema.ts
tag-with-version-schema.ts
tags-schema.ts
token-user-schema.test.ts refactor: add missing tokenUserSchema fields (#1742) 2022-06-22 15:37:26 +02:00
token-user-schema.ts refactor: add missing tokenUserSchema fields (#1742) 2022-06-22 15:37:26 +02:00
ui-config-schema.test.ts
ui-config-schema.ts feat: add feature flag for embedded proxy (#1939) 2022-08-18 11:26:31 +02:00
update-api-token-schema.ts
update-feature-schema.ts
update-feature-strategy-schema.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
update-tag-type-schema.ts
update-user-schema.ts fix: Make additionalProperties true (#1861) 2022-07-27 09:02:02 +02:00
upsert-context-field-schema.ts
upsert-strategy-schema.ts refactor: add schemas to strategy controller (#1744) 2022-06-23 08:10:20 +02:00
user-schema.test.ts refactor: remove bootstrap endpoint (#1900) 2022-08-09 15:58:27 +02:00
user-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
users-groups-base-schema.test.ts Grouping access endpoing (#1858) 2022-07-26 11:39:55 +00:00
users-groups-base-schema.ts Grouping access endpoing (#1858) 2022-07-26 11:39:55 +00:00
users-schema.test.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
users-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
users-search-schema.test.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
users-search-schema.ts refactor: add schemas to user admin controller (#1692) 2022-06-22 14:55:43 +02:00
validate-password-schema.test.ts Task/open api reset password (#1740) 2022-06-22 14:31:41 +03:00
validate-password-schema.ts Task/open api reset password (#1740) 2022-06-22 14:31:41 +03:00
validate-tag-type-schema.ts
variant-schema.ts refactor: use the same variant schema for the admin and client APIs (#1882) 2022-08-08 16:21:57 +02:00
variants-schema.ts
version-schema.ts