1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/lib/middleware
Ivar Conradi Østhus 4a81f0932f
fix: Allow AuthType None to use valid API tokens (#6247)
Fixes ##5799 and #5785

When you do not provide a token we should resolve to the "default"
environment to maintain backward compatibility. If you actually provide
a token we should prefer that and even block the request if it is not
valid.

An interesting fact is that "default" environment is not available on a
fresh installation of Unleash. This means that you need to provide a
token to actually get access to toggle configurations.


---------

Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2024-02-16 08:24:56 +00:00
..
api-token-middleware.test.ts fix(import): making all imports relative and removing baseUrl (#5847) 2024-01-17 15:33:03 +02:00
api-token-middleware.ts fix(import): making all imports relative and removing baseUrl (#5847) 2024-01-17 15:33:03 +02:00
authorization-middleware.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
catch-all-error-handler.ts fix: 4 param error handler (#3520) 2023-04-14 08:59:27 +02:00
conditional-middleware.ts fix: optimize cores headers (#5629) 2023-12-13 16:12:17 +01:00
content_type_checker.test.ts feat: unify error responses (#3607) 2023-04-25 13:40:46 +00:00
content_type_checker.ts Clean up old errors (#3633) 2023-05-11 11:10:57 +02:00
cors-origin-middleware.test.ts feat: adds created_by_user_id to all events (#5619) 2023-12-14 13:45:25 +01:00
cors-origin-middleware.ts fix: optimize cores headers (#5629) 2023-12-13 16:12:17 +01:00
demo-authentication.ts fix(import): making all imports relative and removing baseUrl (#5847) 2024-01-17 15:33:03 +02:00
index.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
no-authentication.test.ts fix(import): making all imports relative and removing baseUrl (#5847) 2024-01-17 15:33:03 +02:00
no-authentication.ts fix: Allow AuthType None to use valid API tokens (#6247) 2024-02-16 08:24:56 +00:00
oss-authentication.test.ts feat: authorization middleware (#3464) 2023-04-06 11:46:54 +02:00
oss-authentication.ts feat: authorization middleware (#3464) 2023-04-06 11:46:54 +02:00
pat-middleware.test.ts chore: add types to pat middleware (#5951) 2024-01-18 14:36:42 +01:00
pat-middleware.ts chore: add types to pat middleware (#5951) 2024-01-18 14:36:42 +01:00
rbac-middleware.test.ts feat: add CREATE_TAG_TYPE permission (#5386) 2023-11-22 10:20:19 +00:00
rbac-middleware.ts fix: segment project fetch when global (#5311) 2023-11-09 13:27:12 +00:00
request-logger.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
response-time-metrics.ts fix(import): making all imports relative and removing baseUrl (#5847) 2024-01-17 15:33:03 +02:00
secure-headers.ts feat: make feedback available for OSS (#5748) 2024-01-03 15:08:01 +02:00
session-db.ts Biome1.5.1 (#5867) 2024-01-12 09:25:59 +00:00
unless-middleware.ts upload limit and import ui tweaks (#2998) 2023-01-26 12:36:45 +01:00