go-json-rest icon indicating copy to clipboard operation
go-json-rest copied to clipboard

Sessions

Open ryuken opened this issue 11 years ago • 1 comments

Are there any plans to implement sessions in the framework?

I tried to use gorilla's session, but it's not compatible because of rest.Request != http.Request and also with the ResponseWriter.

ryuken avatar Aug 20 '14 19:08 ryuken

This is not provided by the framework yet. I'd like to have OAuth2 and other forms of authentication and sessions. For now you can use https://github.com/ant0ine/go-json-rest/blob/master/rest/auth_basic.go as an example of auth middleware. Feel free to share you code and contribute.

Thanks!

ant0ine avatar Oct 26 '14 00:10 ant0ine