go-jwt-middleware
go-jwt-middleware copied to clipboard
A Middleware for Go Programming Language to check for JWTs on HTTP requests
## Description The threat of panicking should be curbed by receiving a second return value when executing the type-cast. ## References - CodeReviewComments: https://github.com/golang/go/wiki/CodeReviewComments#dont-panic - Effective Go: https://go.dev/doc/effective_go#interface_conversions ## Testing...
## Description This PR proposes to make middleware requests observable by instrumenting them with OpenTelemetry. Here is an example of a trace with this PR applied. Note: there is way...
**Please do not report security vulnerabilities here**. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues. **Thank you in advance for helping us to improve this library!** Your...
### Describe the problem When we set multiple audience and jwt only have one audience. then we got authentication error. ```go jwtValidator, err := validator.New( provider.KeyFunc, validator.RS256, issuerURL.String(), []string{"aaaaaa", "bbbbbb"},...
## Description This PR adds tests for the examples so users can follow along on how to test things. ## References This started from #154 ## Testing This is just...
## Description This PR implements a middleware handler for the [Gin](https://github.com/gin-gonic/gin) framework. This adds a dependency on Gin and follows the existing framework provided by the authors. Documentation is not...
### 📝 Checklist - [x] All new/changed/fixed functionality is covered by tests (or N/A) - [x] I have added documentation for all new/changed functionality (or N/A) ### 🔧 Changes This...
### Describe the problem I'm using the `CookieTokenExtractor` and when the named cookie is not present in the request, the following error is returned: `error extracting token: http: named cookie...
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.6.0 to 0.7.0. Commits 14be23e semaphore: cancel acquisition with a done context See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with...