authlogic rails question - how to code for an API

Posted by phil swenson on Stack Overflow See other posts from Stack Overflow or by phil swenson
Published on 2010-04-17T04:23:13Z Indexed on 2010/04/17 4:33 UTC
Read the original article Hit count: 181

Filed under:
|

I have authlogic going on my app, but now I need to have an an API. I don't want to establish a session, just want a user to send in data in a json request such as: {"type":"address","password":"mypassword","name":"my notificaiton name goes here","user":"myusername","text":"my interesting stuff goes here"} So questions - 1) is this a decent approach? 2) how do i do the auth inside my rails controller?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about authlogic