OAuth
OAuth Authorization
This guide assumes you’ve already configured your google credentials, incase you haven’t follow the guide below to first do that :
Setup Google Credentials
Setup your Google Credentials for the application.
Enabling APIs
Switch to the new project you just created.
The first step is to enable the APIs which are needed for the app.
- From the menu in the side bar, under APIs and Services section select the
Enabled APIs & Services
.

- In the
Enabled APIs & Services
page, click on the+ Enable APIs & Services
.

- You will now see a search box where you can search for the specific API that you want to enable. (For example : Google Drive API)

- Once you search for an API, you will find a list of APIs.

- From the list of APIs, select the Google Drive API to enable. And then click on
Enable
in the API page.

- Once the API is enabled, you will see that a
DISABLE API
button appears on top of the page.

- When you go back to the
Enabled APIs & Services
page, you will see that the enabled API has appeared in the list.

Following the same steps above, enable the following APIs :
Adding the scopes for the Enabled APIs:
Navigate to the OAuth Consent Screen you configured, and click on the Edit App
button :

Skip the form to the OAuth consent screen by clicking on SAVE AND CONTINUE
at the bottom of the page.
In the next page, under the Scopes section you will find the ADD OR REMOVE SCOPES
button. Click on that :

You will see the scopes on the right side like this :

Along with the scopes you had added before, add the rest of scopes for the enabled apis :
Ensure to select the checkbox for all of these scopes [you can use these values in the searchbox for the scopes table] :
/auth/drive.readonly
/auth/documents.readonly
/auth/spreadsheets.readonly
/auth/presentations.readonly
/auth/contacts.readonly
/auth/contacts.other.readonly
/auth/gmail.readonly
/auth/calendar.events.readonly
You can also choose to manually
add the scopes in the box
below.
Click on ADD TO TABLE
, and then UPDATE
. You will now be able to see all the added scopes in the tables below:

Then click on SAVE AND CONTINUE
, and then in the next page scroll to the bottom and click on the BACK TO DASHBOARD
.
This concludes the set-up process of Google OAuth.