Google, Facebook, Yahoo oauth/oauth2 in Android application - java

I need to implement Yahoo oauth and Google, Facebook oauth2 in my Android application.
Whether there are similar libraries for Android like HybridAuth that act as an abstract api between your application and various social apis and identities providers such as Facebook, Yahoo and Google or I need to implement it from scratch ?
One other question - is it a good idea to use Android AccountManager to get OAuth2 access to user account ? Will it work on the "gray" chinese android phones without valid google phone id ?

I think you will find exactly what you are for here: https://code.google.com/p/socialauth/

Related

How to authenticate for google ads api from a java backend application

I am going to write a java backend application that once a day should download data using google ads api.
I did something similar for google search console and I was using a service account in order to authenticate. I would like to use the same mechanism but I don't know how to link the service account to the google ads account.
I found this link but I don't have clear how to:
Request the domain administrator to delegate domain-wide authority to
your service account.
Can someone explain (it would be great with some code example) how to authenticate and use google ads api from a backend java application? Which is the easiest authentication mechanism to setup?
Thanks a lot

Custom android authenticator using Google App Engine

I would like to write a custom authenticator for Android. I found this nice tutorial to do it, but instead of using Parse as authentication server, I want to use Google App Engine:
http://udinic.wordpress.com/2013/04/24/write-your-own-android-authenticator/
The problem is that I couldn’t find the way to do it. Do you know if that is possible?
All I can find is how to implement authentication using a Google account, but I’d rather prefer to allow users to use any email account.
Thanks.
You have plenty of choices, the first ones that come to mind:
You can use 3rd party OAuth providers which not all email providers are.
Implemment and use your own Authenticator.
(Recommended) Since you are not accessing user data through OAuth just implement a standard user/password authentication method using endpoints and secure the API using your android's app SHA fingersprint, as explained here

Google Plus Integration in android app

I am using Google+ in my app. And I can share content using following code
Intent shareIntent = new PlusShare.Builder(ViewGooglePlus.this)
.setText("Android Testing for Google+")
.setType("text/plain")
.setContentUrl(
Uri.parse("http://androidsolution4u.blogspot.in/"))
.getIntent()
.setPackage("com.google.android.apps.plus");
startActivityForResult(shareIntent, 0);
but it works only when official Google+ client is installed on device.
I want to share content whether official Google+ client is installed in device or not.
I found here that it is possible using this library but don't know how to use it ?
Is it possible? Anybody have an idea? If yes, how can it be done?
You cant share to Google+ if the application is not installed in the device. You can use Google App Engine and Google+ APIs to share the content.
https://code.google.com/p/google-api-java-client/wiki/APIs#Google+_API
One such example can be found here on Git.
https://github.com/imellon/Google-Plus-Android-Sample
I think you should go for OAuth Authentication of Google Plus. This will provide explicit Authentication then Intent based.
In this mechanism, you are creating one WebView and open link of Google login page. When user is login successful, google return an Token, which you can use in your application to work with its different application like Maps, Location, Google+ etc.
Here is link which have demo application.
You need to register yourself with Google Console and put two important information clientId and clientSecrets.
GOOGLE_PLUS("client id","client secret","https://accounts.google.com/o/oauth2/token","https://accounts.google.com/o/oauth2/auth",BearerToken.authorizationHeaderAccessMethod(),PlusScopes.PLUS_ME,"http://localhost","plus","https://www.googleapis.com/plus/v1/people/me/activities/public")

Registration with Gmail / Facebook credentials in an Android app

I have an android app which is having a registration page. In that I want to integrate with Gmail and Facebook separately .So that user dont have to register themselves with new credentials .They can use Gmail or Facebook login id and password to login themselves.
As I am new to Android .kindly give some solution Step wise .Thanks in advance
Here is the very easy way to integrate facebook SDKs with android code.
Official facebook integration document
Easy facebook integration.
How to integrate Facebook in my android application?
I think you want to like a Single SignOn for Facebook you have to use Facebook android sdk that is available at facebook developer site for android for Google Account authentication you should follow this

User authentication through Google plus in android app

I am working with Android app.
User authentication in app with three way.
First is simple authentication done with query.
Second with Facebook. It also done.
I am working on Google plus authentication. but I am not able find the proper document as provide in facebook app.
Can any one guide me for google plus authentication?
You might want to take a look at "Google Play Services" in the Android SDK (released on 09/26).
Google Play services is a platform delivered by the Google Play Store
that offers integration with Google products, such as Google+ into
Android apps. The Google Play services framework consists of a
services component that runs on the device and a thin client library
that you package with your app.
The following components are included in Google Play services v1 and corresponding client APIs are included in the client library:
OAuth 2.0 authentication
Google+ sign-in
Google +1 button
Here's the link to it on on Googles Developer site:
https://developers.google.com/android/google-play-services/index
To add onto what chrkad suggested, there are also the Google+ mobile APIs:
https://developers.google.com/+/mobile/
and for Android, specifically:
https://developers.google.com/+/mobile/android/
These services will enable you to get the plus.me scope for a given account which you could then use for authentication and user credentials. Using a conventional OAUTH2 flow, you could do this now, it will be easier once the APIs are released.

Categories

Resources