gin-jwt icon indicating copy to clipboard operation
gin-jwt copied to clipboard

Allow guest access to "protected" routes

Open nd2s opened this issue 8 years ago • 3 comments

I'm trying to just get session information into my handlers. For that I want a route to be accessible by authorised users as well as guests. Can gin_jwt library handle this situation? I'm not sure how to avoid the auth header empty error.

nd2s avatar Jul 02 '17 19:07 nd2s

Can you give a hint how this could be implemented?

nd2s avatar Oct 23 '17 16:10 nd2s

I'm also looking for more info on how to do this!

davidchalifoux avatar Dec 15 '17 19:12 davidchalifoux

I ended up writing my own solution based on this library. Also threw out a lot of functionality I don't need.

I'm afraid this lib wasn't built to handle this use case and can't be easily extended as far as I can remember.

nd2s avatar Dec 15 '17 19:12 nd2s