background preloader

Google Play

Facebook Twitter

Getting people and profile information - Google+ Platform. Oauth 2.0 - second step in creating google plus login button. Platform. To take advantage of all of the benefits of Google+ Sign-In you must use a hybrid server-side flow where a user authorizes your app on the client side using the JavaScript API client and you send a special one-time authorization code to your server. Your server exchanges this one-time-use code to acquire its own access and refresh tokens from Google for the server to be able to make its own API calls, which can be done while the user is offline. This one-time code flow has security advantages over both a pure server-side flow and over sending access tokens to your server. The sign-in flow for obtaining an access token for your server-side application is illustrated below. From your application, the user clicks the sign-in button in your client app. If your user hasn't authorized this app yet, the request triggers the OAuth 2.0 dialog, which pops up for the user (2) and asks them to grant your application the permissions listed by your scopes.

Step 1: Create a client ID and client secret <! Quickstart samples - Google+ Platform. Google Plus Over the Air installs via server-side oauth. Android app installs from your web site - Google+ Platform.