In android how can I authenticate the user by Gmail account. Is their any api or support available for android.
Thanks...
Yes, you can use OAuth in Android. There's a fairly detailed post on this:
OAuth in Android using the Google APIs Client Library for Java
There are also two other Java libraries that you might consider for this purpose:
Scribe Java API (also supports using several other identity providers)
OAuth Signpost
Are you asking how to authenticate user in your android app?
You can create a gmail client to authenticate user based on their gmail a/c but This is a unsupported in android sdk.
Take a look at my answer here: https://stackoverflow.com/a/10245999/350691
Hope it helps!
Related
I am developing an android app where I need to consume Google Cloud Platform REST API. This API is not supported for google android library and I have to call using REST. API needs oauth 2.0 access token for authorization. How can I achieve this on android side?
I believe the following link will help you in achieving the desired:
https://developers.google.com/identity/sign-in/android/start-integrating
I got this link and using library compile 'com.google.apis:google-api-services-oauth2:v1-rev136-1.23.0' I can get oauth2.0 access token for google service account.
Which library can be used for OAuth implementation in Android?
Does google OAuth client assembly can be used, even if i don't want to use any google login.
Actually , i am developing an Android Application for some www.abc.com client and they want to use OAuth for authentication. Can you please suggest me some library for this?
You only need to authenticate through Google OAuth if you need to access Google APIs or a user's information. In general, the easiest way to implement Google OAuth in Android is by using the G+ Sign In Button.
I have my own oAuth 2.0 authorization server and resource (API) server. The client will be Android apps. I'm looking for a scribe sample that works against a custom oAuth provider. Is scribe the best option available for doing oAuth from Android client apps?
I think you will find your answer in another stackoverflow response:
Android & OAUTH 2.0
Scribe requires various end points that people don't normally use. If you have the end points configured then yes Scribe is the best.
So i need to be able to use Oauth for the login part on my Android application(not for Twitter, google,etc...) it's a private application. The rest of the app uses rest services w/ the authenticated token.
Here basically i'm looking for any tips, a library or an article recommendation. Most of the articles i found are about how to login to Google's services and such.
Thanks,
Check this one: scribe It is pretty simple.
Here it is a list of libraries cited by the Oauth2.0 "authority":
oauth.net/2
I am building a REST based api for my Android app. I use access tokens and basic header authentication currently. Any suggestions to improve the authentication process?
I suggest to use the OAuth protocol to manage API authentication. You can read more about this protocol here: http://oauth.net/.
+1 ezimuel - "OAuth" is an excellent suggestion.
However, I was surprised to see the link Getting Started with the Tasks API and OAuth 2.0 on Android was deprecated.
Please check out these links:
Google Play Authorization: http://developer.android.com/google/play-services/auth.html (also uses OAuth 2.0)
Authenticating to OAuth 2.0 Services: http://developer.android.com/training/id-auth/authenticate.html
OAuth and REST in Android (1): http://simpleprogrammer.com/2011/05/25/oauth-and-rest-in-android-part-1/
OAuth and REST in Android (2): http://simpleprogrammer.com/2011/06/04/oauth-and-rest-in-android-part-2/