fiber/middleware
Dave 2db1858513
🔥 Feature: Add support for custom KeyLookup functions in the Keyauth middleware (#3028)
* port over FallbackKeyLookups from v2 middleware to v3

Signed-off-by: Dave Lee <dave@gray101.com>

* bot pointed out that I missed the format variable

Signed-off-by: Dave Lee <dave@gray101.com>

* fix lint and gofumpt issues

Signed-off-by: Dave Lee <dave@gray101.com>

* major revision: instead of FallbackKeyLookups, expose CustomKeyLookup as function, with utility functions to make creating these easy

Signed-off-by: Dave Lee <dave@gray101.com>

* add more tests to boost coverage

Signed-off-by: Dave Lee <dave@gray101.com>

* teardown code and cleanup

Signed-off-by: Dave Lee <dave@gray101.com>

* test fixes

Signed-off-by: Dave Lee <dave@gray101.com>

* slight boost to test coverage

Signed-off-by: Dave Lee <dave@gray101.com>

* docs: fix md table alignment

* fix comments - change some names, expose functions, improve docs

Signed-off-by: Dave Lee <dave@gray101.com>

* missed one old name

Signed-off-by: Dave Lee <dave@gray101.com>

* fix some suggestions from the bot - error messages, test coverage, mark purely defensive code

Signed-off-by: Dave Lee <dave@gray101.com>

---------

Signed-off-by: Dave Lee <dave@gray101.com>
Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
Co-authored-by: Jason McNeil <sixcolors@mac.com>
Co-authored-by: RW <rene@gofiber.io>
2024-06-27 20:30:47 +02:00
..
adaptor Bump golangci-lint to v1.59.1 (#3029) 2024-06-11 08:52:49 +02:00
basicauth ♻️ v3: fix!: ContextKey collisions (#2781) 2024-01-04 09:44:45 +01:00
cache 🔥 Add Cache Invalidation Option to Cache Middleware (#3036) 2024-06-26 16:02:48 +02:00
compress 🔥 Feature: Add support for zstd compression (#3041) 2024-06-26 16:00:38 +02:00
cors refactor(middleware/cors)!: Config, lists as list types. (#2962) 2024-04-17 19:27:24 +02:00
csrf prepare release v3.0.0-beta.3 2024-06-26 12:17:58 +02:00
earlydata Fix some comments (#2983) 2024-04-24 11:12:06 +02:00
encryptcookie V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
envvar chore: Enabling shuffling, cleanup and consistency across tests (#2931) 2024-03-24 20:54:56 +01:00
etag Bump golangci-lint to v1.56.1 (#2842) 2024-02-13 08:23:15 +01:00
expvar Merge remote-tracking branch 'origin/master' into v3-beta 2023-08-05 22:02:01 +03:00
favicon fix: Inconsistent and flaky unit-tests (#2892) 2024-03-08 20:03:13 +01:00
healthcheck ♻️ refactor: Migrate HealthChecker to v3 (#2884) 2024-02-29 08:50:13 +01:00
helmet ci: address multiple lint rules (#2869) 2024-02-19 14:33:10 +01:00
idempotency Adding a generator to generate the CTX interface (#3024) 2024-06-03 08:37:22 +02:00
keyauth 🔥 Feature: Add support for custom KeyLookup functions in the Keyauth middleware (#3028) 2024-06-27 20:30:47 +02:00
limiter chore: Enabling shuffling, cleanup and consistency across tests (#2931) 2024-03-24 20:54:56 +01:00
logger Bump golangci-lint to v1.59.1 (#3029) 2024-06-11 08:52:49 +02:00
pprof 🧹 v3 (chore): Bump minimum version of Go to 1.21 (#2911) 2024-03-10 10:47:21 +03:00
proxy feat(middleware/proxy): Add DialDualStack option for upstream IPv6 support (#2900) 2024-03-13 19:15:42 +01:00
recover Bump golangci-lint to v1.56.1 (#2842) 2024-02-13 08:23:15 +01:00
redirect V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
requestid chore: Fix testifylint errors in middleware (#2805) 2024-01-21 08:32:23 +01:00
rewrite V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
session test(middleware/session): Remove extra release and acquire ctx calls in session_test.go (#3044) 2024-06-26 15:30:31 +02:00
skip Merge remote-tracking branch 'origin/master' into v3-beta 2023-08-05 22:02:01 +03:00
static 🔥 Feature: Add support for zstd compression (#3041) 2024-06-26 16:00:38 +02:00
timeout V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00