In this blog we will be integrating Google Plus OAuth Login functionality using Cakephp. So, let's start with the first foremost step, i.e, creating the Google Apps to get the Google OAuth Client Id and Client Secret Key.
Step 1: Create Google app and get Google OAuth Client Id and Client Secret Key. For the same go through this link . Log in with your Google account, then click on the Create Project button.
Enter your project name and save
Next you are required to enable Google+ API. Open your project, click on the Enable an API button (Overview - > Enable an API )
Click on the Enable an API button (Overview - > Enable an API )
Select Google + API from the list to enable.
Now click on the Create Credentials button to create new client id
You have successfully created your client id, client secret. Note it down for further use.
Step 2: Create sample database with table using the following SQL query: