2

when building a ios app, what's the best way to authenticate with a rails app through json? i've seen posts about using tokens in the URL and others about using cookies.

1
  • What's the context chris? At present I'm doing something similar using a token. Commented Oct 30, 2011 at 19:57

1 Answer 1

1

I use Authlogic -- Typically I wrote a mobile_signin action which returns the users api_token (created by Authlogic) and then store that on ios. For all future requests you can pass that token to the rails app, and Authlogic understands it and uses it as authentication, of course just as if you were going to use it in the web app, a token is only good for 1 request, so you'd have to send that token with each request, but this is standard procedure.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.