If you want to use Google services such as Google Sheets, Google Drive, Google Cloud and many others, this step-by-step guide can help you with Google OAuth 2.0 authentication.
Once you have created the project and selected the Rest API resource, you also selected the OAuth 2.0 authentication method - you need to select a provider.
Visit the Google API Console to obtain OAuth 2.0 credentials such as a
Client ID and
Client secret that are known to both Google and Jet Admin.
Project name and
Location then click the Create button.
In the control panel, enable the API and Services you plan to use.
The API library looks like this. You can choose any service you are plan to use, but we will go through the Google Sheet API.
Once you have selected the API and services, click the Enable button.
To use this API, you need credentials. Go to the credentials menu to get started.
Сonfigure the OAuth consent screen:
Choose how you want to configure and register your app, including your target users. You can only associate one app with your project. Then click Create.
Specify the application name, scroll down the page, and click Save.
Go to the credentials menu and click Create credentials. Then select OAuth Client ID.
Then you need to select the application type. In the drop-down list, select Web application. Specify name, you also can add OAuth Redirect URL, then click Create.
Congratulations, your client ID and client secret created.
To complete the process of adding a resource, we need to fill in the scopes field.
You can find the necessary information here. For our case, the scopes look like this.
See, edit, create, and delete your spreadsheets in Google Drive
View your Google Spreadsheets
Congratulations! Now you are ready to authenticate with Google OAuth 2.0. If you still have any questions, please contact us for help.