echo icon indicating copy to clipboard operation
echo copied to clipboard

Json Web Token middleware

Open orangesoup opened this issue 11 years ago • 8 comments

Hey!

Any plans to have a built-in jwt middleware?

orangesoup avatar May 19 '15 11:05 orangesoup

Yes, soon.

vishr avatar May 19 '15 15:05 vishr

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 avatar May 22 '15 06:05 alehano

@alehano +1

aliuygur avatar May 26 '15 12:05 aliuygur

i just using labstack/echo for its simplicity. if you want a fullstack framewrok then you can use revel or beego

aliuygur avatar May 26 '15 12:05 aliuygur

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.

orangesoup avatar May 26 '15 12:05 orangesoup

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.

aliuygur avatar May 26 '15 12:05 aliuygur

@alehano +1. Usually, auth is a very app specific thing anyway and there are already go specific libraries for OAuth or JWT.

robgunnatkin avatar May 28 '15 04:05 robgunnatkin

For anyone who wants a JWT-middleware its very easy to implement one, eg: https://gist.github.com/denro/9e190d6b59923b9d0338

denro avatar Jun 09 '15 11:06 denro