how to implement a simple Android OAuth and server API

i have an android app that sends data to my web server (data is processed by php and stored in mysql db). for security reasons, i need to verify that the user sending the data is who he/she says he/she is.

i do not want to verify login/password, i would rather use the phone’s registered (account manager) google account with something like federated login. i played around with nick johnson’s example for GAE, but it is specific for GAE based apps and does not permit integration with my own server API’s, therefore authentication does not work (i get a google authToken, but it is meaningless for my server API).

  • Does ImageView.setImageURI(Uri uri) work with remote files?
  • Align one item to left of ActionBar
  • Cannot find symbol class on Butter Knife generated code
  • Android UI pattern for moving Listview items up and down
  • NotificationCompat.BigTextStyle Content disappears on new notification
  • How can i merge two bitmap one over another at selected point on the first image in android?
  • from what i understand, the safest+simplest solution would be to use OAuth.

    but i am completely stumped trying to understand OAuth (i understand its concepts, but have not been able to find any example that i could implement).

    does anyone have anything like a functional example that i could play around with and tweak for my needs? thanx in advance!

    Related posts:

    When should I do certain SQLite operations on another thread(not the main thread)?
    An Android Virtual Device that failed to load
    Android: Clear cache programmatically
    What are the limitations and disadvantages of Phonegap or HTML5 as compared to those of Android
    Adding/Removing the language entries in the “Settings” -> “Sele...
    Kill another process/application programmatically
  • What happen if return false in OnCreate of ContentProvider?
  • How can I avoid garbage collection delays in Java games? (Best Practices)
  • Android RelativeLayout height not following GridView height
  • Google Maps API v2 not working
  • Findbugs android gradle plugin
  • How to highlight a TextView or LinearLayout when click it?
  • 2 Solutions collect form web for “how to implement a simple Android OAuth and server API”

    if not done already, you could check this page which explains how to implement oauth server with php/mysql

    if you play with symfony2 as backend

    i hope this helped

    when ever a user login or use your app first time , you should capture his/her device mac address, and store it to the database, and you can easily authenticate user using this mac address

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.