-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support jwt for auth in test mode (#73)
* feat:add jwtauth middleware for mocking time in test * fix(jwtauth): add condition for avoiding mock clock in record mode * refactor(jwtauth): use keploy getclock in jwtauth instead of request context * fixes nil pointer of keploy instance in jwtAuth to prevent panic * feat(jwt): adds kjwtauth middleware for jwt authentication authenticates the requests in test mode by mocking the time using WithClock jwt.ValidationOption * Update README.md * Update chi-v5.go * Update chi-v5.go * Update chi-v5.go * Update context.go * Update context.go * Update README.md * Update README.md * feat(jwt): adds kjwtauth middleware for jwt authentication authenticates the requests in test mode by mocking the time using WithClock jwt.ValidationOption Co-authored-by: Sarthak160 <[email protected]> Signed-off-by: re-Tick <[email protected]>
- Loading branch information
1 parent
e18207e
commit 0722b0c
Showing
6 changed files
with
571 additions
and
17 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
Oops, something went wrong.