News for hackers. Stuff that matters.
Re:Lotus, a web framework for Ruby by chrisdevereux on Monday June 23, 2014 @05:27PM (#7934802)
Slightly OT, but as a mobile guy who occasionally toys with server-side programming, authentication is always where I get stuck. I'd like to see some examples of how to implement authentication and sessions cleanly without too much framework magic. Any pointers?
Re:Lotus, a web framework for Ruby by p8952 on Tuesday June 24, 2014 @05:14AM (#7936797)
Rolling your own? This is as simple as it gets: http://128bitstudios.com/2011/11/21/authentication-with-sina...

If you want to make it even easier, use OmniAuth: http://recipes.sinatrarb.com/p/middleware/twitter_authentica...