Login Restfully

In DHH’s keynote, he alluded to doing logins with REST. Has anyone
implemented this, and if so, would you mind elaborating on how you did
it please?

Thanks in advance.

Guest wrote:

In DHH’s keynote, he alluded to doing logins with REST. Has anyone
implemented this, and if so, would you mind elaborating on how you did
it please?

Thanks in advance.

Only one I know of:
http://svn.techno-weenie.net/projects/plugins/restful_authentication/

Great thanks!

David C. wrote:

Guest wrote:

In DHH’s keynote, he alluded to doing logins with REST. Has anyone
implemented this, and if so, would you mind elaborating on how you did
it please?

Thanks in advance.

Only one I know of:
http://svn.techno-weenie.net/projects/plugins/restful_authentication/

I tried it on depot application and I get the following error :frowning: (I am
using Rails 1.1.4)

22:47:18:~/work/depot > script/plugin source
http://svn.techno-weenie.net/projects/plugins
Cannot find gem for Rails =1.1.2:
Install the missing gem with ‘gem install -v=1.1.2 rails’, or
change environment.rb to define RAILS_GEM_VERSION with your desired
version.

Could you please clarify? TIA

Create a sessions model and login by 'create’ing a new session.
Logout would simply map to destroy. Also, take a look at Rick O.'s
restful auth plugin at:
http://weblog.techno-weenie.net/2006/8/1/restful-authentication-plugin


Zack C.
http://depixelate.com

On 8/10/06, Bala P. [email protected] wrote:

I tried it on depot application and I get the following error :frowning: (I am using Rails 1.1.4)

22:47:18:~/work/depot > script/plugin source http://svn.techno-weenie.net/projects/plugins
Cannot find gem for Rails =1.1.2:
Install the missing gem with ‘gem install -v=1.1.2 rails’, or
change environment.rb to define RAILS_GEM_VERSION with your desired version.

Could you please clarify? TIA

According to the error message, Rails 1.1.2 is not found. Either
install it, or change environment.rb to define RAILS_GEM_VERSION with
the desired version. I’d suggest doing a quick upgrade and changing
it to 1.1.6.


Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com

I’d use another model name than sessions, as that collides with the
ActiveRecordStore session handler.