Json Web Token middleware
Hey!
Any plans to have a built-in jwt middleware?
Yes, soon.
For me, it's quite exotic. And you can do it by yourself if needed. I think it's a good idea to keep project as slim as possible.
@alehano +1
i just using labstack/echo for its simplicity. if you want a fullstack framewrok then you can use revel or beego
Well in that case we could also just delete the basic auth middleware as well. I really wouldn't think JWT is such an exotic thing and I also wouldn't think it would make performance worse.
i think the basic auth mid. should be deleted. there are lot of middlewares out of box. and i don't think that for a performance worse.
@alehano +1. Usually, auth is a very app specific thing anyway and there are already go specific libraries for OAuth or JWT.
For anyone who wants a JWT-middleware its very easy to implement one, eg: https://gist.github.com/denro/9e190d6b59923b9d0338