User authentication through Google plus in android app - java

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.

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

Authenticate users in Java AppEngine Application with Firebase

First I build an AppEngine with java, that uses the Google Sign-In library:
https://cloud.google.com/appengine/docs/standard/java/users/
But now we want to also have an android app and switch from Google Sign-In to Firebase (because it integrates way better with android).
Unfortunately, I found no java sdk for firebase that would replace the Google Sign-In probably.
What is the best way, to add firebase authentication to a java AppEngine application?
Java has REST capabilities. Use Firebase Auth REST API.

how to use google translate paid api in android

H, i want to use google paid translate api, i have enable billing and activate that api from google console service
i have also generated the android key
but every time i am getting error like below screen
"Access Not Configured. Please use Google Developers Console to activate the API for your project.

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")

Google, Facebook, Yahoo oauth/oauth2 in Android application

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/

Categories

Resources