Google API Authentication

Allow users to connect to Google applications.

Technical Name:
google_api_auth
Version:
14.0
License:
Author:
Numigi
https://kastor.lab.numigi.net/web/image/product.template/994/image_1920?unique=0a81b40
  • Odoo Version

Conditions générales
Garantie satisfait ou remboursé de 30 jours
Expédition : 2-3 jours ouvrables

Google API Authentication

This module allows you to set up and connect with Google applications.

It will serve as a base module for other modules to establish connections with Google applications.

This module uses the Google OAuth 2.0 Library for Python.

It also uses OAuth 2.0 for Server-to-Server Applications (see documentation here: <https://github.com/googleapis/google-api-python-client/blob/main/docs/oauth-server.md>).

Usage

1- Create a new project in Google Developper Console:

  • Log in to your Google Account, go to the Google Developers Console, and create a new project.
static/description/google_api_auth_new_project.png
  • Fill in the project name field and click on the "Create" button.
static/description/google_api_auth_project_name.png

3 - Create credentials account

  • Click on the "Credentials" tab.
  • Click on the "Create Credentials" button.
  • Select "Service account" from the options.
static/description/google_api_auth_credentials_service_account.png
  • Fill in the service account name and description, then click on the "Create & Continue" button.
static/description/google_api_auth_service_account_info.png
  • Grant users access to this service account.
  • If needed, grant this service account access to your project as an owner.
static/description/google_api_auth_credentials_service_account_grant.png
  • Download the service account key in JSON and save it in a secure location (you cannot download it again later).
static/description/google_api_auth_service_account_key.png

4 - Enable the application API in Google Developer Console

  • Go to the menu: Settings > APIs & Services > Library.
  • Search for the specific API you want to enable (e.g., Google Drive API).
static/description/google_api_auth_api_library.png
  • Click on the API, then click on the "Enable" button.
static/description/google_api_auth_api_enable.png

5 - Establish a connection to the Google application

  • Go to the menu: Settings > Technical > Google API > Google Applications.
  • Add a Google Applications configuration.
static/description/google_app_form.png
  • Use the service account type to run API requests.
  • For each application, you need to add the scope and the JSON file that contains the authentication key.
  • Click on "Test Google API Auth" to check if the authentication is set up correctly.

NB:

This module can be improved to accommodate other authentication types

Contributors