I have developed simple Ruby on Rails based API. I want to use resources from my API with my Android application. My Rails backend uses devise and doorkeeper for OAuth 2 based authentication. How can I use authentication process from my Android app. Do I need to use WebView or ?
1 Answer
You should definitely use token based authentication. You should follow the guide from Doorkeeper's documentation, it's well documented there.
https://github.com/doorkeeper-gem/doorkeeper/wiki/Interacting-as-an-OAuth-client-with-Doorkeeper
Also, you should check how to implement this on android.
http://docs.huihoo.com/android/4.2/training/id-auth/authenticate.html
Hope this helps.
1 Comment
Sysrq147
Yes this is nice for a start. I hope I will figure it out :)