-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔥 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>
- Loading branch information
1 parent
c9b7b1a
commit 2db1858
Showing
4 changed files
with
233 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters