I\'m developing an Android app and I want users to sign-in to my app using Google+ Sign-In.
At the moment, I pass the user\'s name which I get from Google+ within a PHP
Google Plus uses OAuth 2.0 https://developers.google.com/+/api/oauth
It has auth token. You can use auth token to access Google Plus from Android or server. On server you can verify token by accessing Google with that token.
Google+ Sign-In uses OAuth 2.0 - which means the user does not authenticate directly with your server. Instead they authenticate with Google and obtain a token signed by Google. Your app gets that token (from Google Play services on Android) and can pass it to your servers as proof that the user authenticated with Google. You then associate the users Google+ ID with a new or existing user ID on your own servers. So whenever a user can prove that they authenticated with Google for a specific Google+ user ID, you treat them as authenticated on your own server.
To implement, you have a few options depending on how you architect your system:
GoogleAuthUtils.getToken()
and pass it to your server. Your server, after verifying the Google signature, can then safely associate the users session with the appropriate user account and permissions (ie. treat the session as authenticated). The process of getting the token and verifying it is discussed by Tim Bray here and by Ian Barber here. You probably want to make Google API calls in your client or on your server so that you can pre-populate your registration form with data from the users Google+ profile, for example.