macaron
macaron copied to clipboard
jwt contrib add
添加一个jwt验证的组件吧。结合jwt-go
https://github.com/dgrijalva/jwt-go
嗯。。我也有这个计划。。
才发现auth0官方有例子: https://github.com/auth0/go-jwt-middleware/tree/master/examples/martini-example
备忘一篇相关文章: http://blog.brainattica.com/restful-json-api-jwt-go/
还挺简洁的。。macaron移植简直洒洒水。。哈哈0 0
https://github.com/gin-gonic/contrib/tree/master/jwt
echo的这个很简洁,无闻弄个吧: https://github.com/labstack/echox/tree/master/recipe/jwt-authentication
这个。。需要时间,服务器磁盘又要满了,gowalker还得重写一下精简存储格式的大小。。