Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 701 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 701 Bytes

Google OAuth 2 Client PHP App

This code is a very simple PHP implementation for Google's OAuth 2.0 API service.

It is intended as a complement to my tutorial: http://20missionglass.tumblr.com/post/60787835108/programming-an-oauth2-client-app-in-php

Configuration

Log into your Google APIs console (http://code.google.com/apis/console), navigate to the API Overview, and set up your web app. Copy and paste your Client ID, Client Secret, and Redirect URI into config.php:

$oauth2_client_id = 'OAUTH_2_CLIENT_ID';
$oauth2_secret = 'OAUTH_2_SECRET';
$oauth2_redirect = 'https://example.com/oauth2callback';

Now You should be good to go.