...

/

Set Up Project and Fetch Client Credentials

Set Up Project and Fetch Client Credentials

Learn to set up a project on the Google Cloud Platform and create authorization credentials.

Google OAuth 2.0 manages the OAuth 2.0 flow and token lifecycle that helps simplify the process of integrating Google APIs into applications. It allows resource owners to sign in to their Google accounts, provide consent, and share their information with the client in a secure manner.

This lesson goes over the steps needed to set up OAuth 2.0 with Google.

To get a better idea of the process, let's say you've built an application that fetches users' images and videos from Google Drive and allows the user to view or download these media files. The OAuth entities, in this case, are as follows:

  • Client: Your application that fetches media files.

  • Resource owner: The user who wants to use your application to fetch media files. You'll be accessing your own resources through the client, so you are the resource owner in this case.

  • Authorization server: Google's authorization server.

  • Resource server: Google's resource server.

To get started, you need to create a project on the Google Cloud Platform and generate your OAuth credentials. Let's go over the complete process to create a project and get the required credentials.

Create a project

  1. Head over to the Googl ...