Rails 4 API with devise and doorkeeper - Android app authentication - android

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 ?

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.

Related

Xamarin : Authenticating Android application using Windows Authentication

I have a WCF Service hosted by an ASP.net web application where user is authenticated using windows authentication. Now I am trying to write an Android application to consume this WCF Service.
Any idea how to get my application windows-authenticated to be able to start consuming the service?
You won't be able to use Windows Integrated authentication (it's proprietary), but you could use either Basic auth (transport-layer encryption/SSL highly recommended) or OAuth combined with OWIN.
Out of the box, there is no support. But you could look into JCIFS (http://jcifs.samba.org/); a library that implements the CIFS/SMB networking protocol. That library coupled together with the documentation here on Apache's HTTP client (https://hc.apache.org/httpcomponents-client-ga/ntlm.html) should help you integrate Windows Authentication into your Android app.

EXAMPLE of Rails 4 RESTful API with Devise for Android client XML?

I am wandering if it's possible to use gems like devise, oauth, paperclip, commentable with a Rails RESTful API?
I am building a prototype API for an Android CLient which will be sending POST and GET messages in XML? As it is a prototype I want to get it done using gems and as fast as possible! Any help\demo app\resources is Greatly appreciated!
PS: I watched ryan bates's screencasts on API's.
I decided to use OAuth, as it is meant for APIs. Will use tokens instead of cookies!

android connect to magento

i am using eclipse for development of android application. i want to connect my application to magento. i am new developer so i have not too much idea about this.
below i mention some problem which i want to solve:-
my database is in mysql and mysql connect to magento. so how my app connect to magento?
if i connect my app to magento through web service but i have no idea about how to connect through web service to magento?
please help me
If anyone looking for android application for magento site, you can use this.
Magento offers two API's to develop your app in Android
SOAP API - http://www.magentocommerce.com/api/soap/introduction.html
REST API - http://www.magentocommerce.com/api/rest/introduction.html
You have to create a New User in your Magento Store with roles.That you can do by loging in to your Admin and the option is under the system->WebServices->User&Roles.
You have to create role and a user.Then assign the roles to the User.
For using SOAP API use this tutorial http://inchoo.net/dev-talk/android-development/magento-v2-api-soap-android/
For REST api use - Android - Magento REST Api Cannot Respond Properly
In REST API, Oauth is there This example is without Oauth.
Before stating Android side make sure the magento configured properly. Test the urls in browser first then use it in Application.
For those who are still looking at answer, I have put down my research in below link, we were able to sucessfully create mobile app for IOS and andriod with libraries mentioned in below link..please go through once..
http://www.siddharthvaghasia.com/2014/12/11/connect-ios-and-andriod-app-to-magento-store/
For andriod...here is steps with example..
http://www.siddharthvaghasia.com/2014/12/14/use-k2soap-library-android-platform-consume-magento-soap-api-v2/
Note- Not able to add to comment to posted in answer...

Android application with syncadapter using REST client server communication and google oauth

I am planning to develope an android app, that syncs its data with a server over a syncadapter using a REST architecture. The question is, is it possible to use the google account to authenticate the user at the server? If it is possible, how? Do you have any code snippets for me?
-
Chris
Checkout this example by google:
http://developer.android.com/resources/samples/SampleSyncAdapter/index.html
And take a look at these docs
https://developers.google.com/accounts/docs/OAuth2

Using REST API for android apps integration with backend

I am working on an android app which needs to talk to the backend, securely. I plan to use the REST API. Is there a website which offers a good example code.

Categories

Resources