macaron icon indicating copy to clipboard operation
macaron copied to clipboard

jwt contrib add

Open transtone opened this issue 10 years ago • 6 comments

添加一个jwt验证的组件吧。结合jwt-go

https://github.com/dgrijalva/jwt-go

transtone avatar Nov 13 '15 16:11 transtone

嗯。。我也有这个计划。。

unknwon avatar Nov 13 '15 16:11 unknwon

才发现auth0官方有例子: https://github.com/auth0/go-jwt-middleware/tree/master/examples/martini-example

备忘一篇相关文章: http://blog.brainattica.com/restful-json-api-jwt-go/

transtone avatar Nov 14 '15 12:11 transtone

还挺简洁的。。macaron移植简直洒洒水。。哈哈0 0

unknwon avatar Nov 14 '15 16:11 unknwon

https://github.com/gin-gonic/contrib/tree/master/jwt

transtone avatar Nov 22 '15 06:11 transtone

echo的这个很简洁,无闻弄个吧: https://github.com/labstack/echox/tree/master/recipe/jwt-authentication

transtone avatar Mar 23 '16 07:03 transtone

这个。。需要时间,服务器磁盘又要满了,gowalker还得重写一下精简存储格式的大小。。

unknwon avatar Mar 23 '16 07:03 unknwon