We have a web app running on Rails, using Devise and OmniAuth for user authentication.
We are now building a iOS native app for the web app. We don't really know what's the best practice to implement this.
We will create a button for user login with facebook, when users click on it, they will be redirected to Facebook native app for authentication.
Controllers in Rails are secure by Devise. If the iOS app want to talk with the web app, the iOS itself are required to create a session which can communicate with Devise
The Facebook native app only return a Facebook access token. We can't use this token to create a Devise session.
So.....
Thank all.
Check out the following post:
http://matteomelani.wordpress.com/tag/rails/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With