[Facebooker-talk] Loggin in and redirection

Mike Mangino mmangino at elevatedrails.com
Thu Aug 28 18:23:16 EDT 2008


There have been a few discussions about how to handle requiring a user  
to login and then redirecting them back to the original page. I just  
updated my previously unannounced plugin to handle this case.

Check out Facebooker Authentication: http://github.com/mmangino/facebooker_authentication/tree/master

It's a really simple plugin that generates a user module as well as a  
couple of controller helpers. To use it, just include the controller  
module and then use the login_required filter. login_required will  
handle calling ensure_... If the user is not logged in, they will be  
redirected to the login url and sent back to the requesting page  
afterwards.

It's somewhat untested. I'm not using the actual plugin in production  
anywhere, but it is an extraction from an existing application.

Mike


--
Mike Mangino
http://www.elevatedrails.com





More information about the Facebooker-talk mailing list