auth0 / go-jwt-middleware

A Middleware for Go Programming Language to check for JWTs on HTTP requests
MIT License
1.07k stars 205 forks source link

Add gRPC example to mimic CheckJWT functionality #244

Open kingscott opened 7 months ago

kingscott commented 7 months ago

📝 Checklist

🔧 Changes

📚 References

🔬 Testing

ewanharris commented 7 months ago

Thanks for the PR @kingscott! I think given the warnings from snyk around some of the dependencies being pulled in via go-kit this might prove difficult to get in.

Do you think it would be feasible to provide a barebones gRPC example rather than one built ontop of go-kit?

kingscott commented 7 months ago

Hey @ewanharris - understandable. I'd need to dig in a bit more to how I'd do this; I've only really used go-kit for gRPC. Arguably, this PR could even be simplified to just show checking a JWT outside of a transport context? (Kind of like a helper method?)