News for hackers. Stuff that matters.
Re:Lotus, a web framework for Ruby by herge on Monday June 23, 2014 @01:34PM (#7933206)
Whenever I hear lightweight and complete, I always wonder if they handle one of the hardest things to do cleanly in web-apps: user authentication and access control of resources. Does Lotus support this out of the box?
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...

Re:Lotus, a web framework for Ruby by fuadksd on Monday June 23, 2014 @02:52PM (#7933730)
It doesn't, nor is supposed to. It is composed of small parts with as little responsibility as possible. The idea of Lotus is to not force you to use any tool or favor any kind of approach to such things, but instead give you enough "frame work" to compose with other tools that are responsible for such tasks like authorization, authentication, persistence, or really any kind of stuff you need to do.
Re:Lotus, a web framework for Ruby by mmanfrin on Monday June 23, 2014 @01:47PM (#7933289)
A quick look at the API[1] showed a couple mentions of Sessions in the example structure. Not sure if it is handled out of the box, but I get the impression it is not difficult to implement. But that is just authentication, no idea about access control.

[1] http://rdoc.info/gems/lotusrb

Re:Lotus, a web framework for Ruby by diegosouza on Monday June 23, 2014 @01:52PM (#7933325)
It doesn't. It's only the base, but a well constructed base.