rails separate login for an api

Posted by Squadrons on Stack Overflow See other posts from Stack Overflow or by Squadrons
Published on 2012-12-05T23:02:12Z Indexed on 2012/12/05 23:03 UTC
Read the original article Hit count: 150

Filed under:
|

I have a very simple api that is part of a rails app that requires logging in.

I just need a way to make the api part accessible with a simple form that allows the user to enter parameters like a key (just a simple one stored in the DB, no OAuth or anything), a userId to find and return a user via json, and maybe some other parameters like asking for their schedule.

How can I keep this seperate from the rest of the app, making it a public facing form that will grant access only to the api?

Thanks.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about api