Google Developer console project setup and OAuth

Before we start experimenting with Google Drive APIs, it is necessary to create a project in the Google Developer Console. The Drive APIs require configuration of secret keys, authentication mechanism like OAuth or Service account etc. to ensure only authorized systems are allowed to invoke API.

A person depicting setup of electrical instruments.
Project Setup (Photo by Adi Goldstein on Unsplash)

Project setup

The steps to create a project in the Google developer console are pretty simple. To proceed, you must be logged into Check below video to configure a project in a console.

Name your project and then enable the appropriate APIs to experiment. In our case, we will enable Google Drive API. Note that there are limits on a number of API requests that you can make. The limitation is imposed to avoid abuse of the platform. We will explore these options in an upcoming video. Meanwhile, let’s just proceed with the next step.

Credentials Approach – OAuth

Google provides multiple approaches to authenticate system/user. You can choose from approaches like OAuth, Service Account Or API Key.

OAuth – Suitable when you wish to perform Google API operations on behalf of a user.
Service Account – Suitable when you wish to perform Google API operations on system data without prompting end-user to perform Google Sign-in. Note there are few complexities involved in this approach.
API Key – Selected Google API allows API Key to be passed as a parameter. Unfortunately, this doesn’t work with Google Drive API. 🙁

Check below video to configure OAuth credentials for the project we just created.

Before we proceed with next steps, I will recommend you to follow the steps discussed till now. In the next video, we will set up the Spring boot project, configure dependencies and make sure everything is configured correctly.

If you face any issues with the configuration, feel free to comment on the video or in this post. Happy Coding 🙂

By Carbon Rider

Hi this is Yogesh, welcome to my world. Being passionate about learning new technologies and building frameworks, I end up spending most of my time in front of computer. But over last few months, I realised apart from being good coder and designer (Yes I am) I have something hidden in me. And thats called ART.

Leave a Reply