1

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 1

4

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.

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

1 Comment

Yes this is nice for a start. I hope I will figure it out :)

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.