-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adds JWT for authenticating requests in test mode. #73
Conversation
authenticates the requests in test mode by mocking the time using WithClock jwt.ValidationOption
It adds middleware for Echo, Chi and Gin router. It makes changes in the go-chi/jwtauth. In future, looking forward to add gin-jwt, echo jwt middleware when the underlying jwt package have a validationOption for mocking time in Claim Validation. |
authenticates the requests in test mode by mocking the time using WithClock jwt.ValidationOption
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* 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]>
* 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]>
No description provided.