weixin_39692045
WRovo
2020-12-27 10:12

Gin middleware

I would very much like to see some middleware for this that works with the gin framework.

该提问来源于开源项目:auth0/go-jwt-middleware

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

6条回答

  • weixin_39774219 weixin_39774219 4月前

    +1

    点赞 评论 复制链接分享
  • weixin_39533174 weixin_39533174 4月前

    Hey, I just wrote an example : https://gist.github.com/Err0r500/00c50d45a5337058c4c732206457bd64 hope this helps,

    点赞 评论 复制链接分享
  • weixin_39774219 weixin_39774219 4月前

    This is very helpful - very easy to get running. ;)

    Now for the hard part - I cannot figure out how to actually use Auth0 to issue a JWT token that I can use to try the authenticated route.

    点赞 评论 复制链接分享
  • weixin_39710179 weixin_39710179 4月前

    Were you able to generate some kind of test JTW for testing? Thanks

    点赞 评论 复制链接分享
  • weixin_39774219 weixin_39774219 4月前

    Actually never was able to figure it out. I ended up using a different JWT library.

    点赞 评论 复制链接分享
  • weixin_39603573 weixin_39603573 4月前

    I'm going through and cleaning some old issue up - it looks like this issue is no longer active so I'll close it for now. Feel free to open it again if this is still an issue.

    点赞 评论 复制链接分享

相关推荐