Skip to content Skip to sidebar Skip to footer

How To Let Rails Tell Mobile Applications That Users Signed In Or Not?

I'm developing a Rails application that use devise as the authentication solution. For web applications, users enter username and password in a form, Rails can render different pag

Solution 1:

More tutorials:

http://blog.joshsoftware.com/2011/12/23/designing-rails-api-using-rabl-and-devise/

http://www.strukturedkaos.com/2011/09/19/soup-to-nuts-token-authentication-for-android-using-rails-3-devise/

Make sure to enable/uncomment the following line in devise configuration:

config.token_authentication_key = :auth_token

Solution 2:

You need token authentication. Mobile client should have a login form and access the REST API for authentication. If authentication was successful, you will get a token which you need to send with all the subsequent requests in the same session.

http://zyphdesignco.com/blog/simple-auth-token-example-with-devise

http://matteomelani.wordpress.com/2011/10/17/authentication-for-mobile-devices/

Post a Comment for "How To Let Rails Tell Mobile Applications That Users Signed In Or Not?"