Skip to content

backupbrain/google-oauth2-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple Google OAuth2 authentication example in PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages