Google Settings

Google Settings

OAuth 2.0 Authentication Protocol is used to gain access to the API that will be used by ERPNext to enable Google Integrations.

How to set up Google Settings

For Google Calendar, Google Contacts, Google Drive and Google Indexing

You must give ERPNext permission to access your Google account in order to enable synchronization with any of the aforementioned services. The example for configuring Google Contacts Integration is shown below.

  1. Start a new project on Google Cloud Platform and generate new OAuth 2.0 credentials.
  • In the API Library, turn on API Access for the integration you want to use.

    • Google Calendar: Calendar API
    • Google Contacts: People API
    • Google Drive: Drive API
    • Google Indexing: Indexing API*
  • Generate a new credential by selecting New OAuth client ID under API & Services > Credentials.

  • Choose the Web Application Type.
  • On the list of authorized JavaScript origins, add https://yoursite.
  • As a permitted redirect URI for Google Calendar, add https://yoursite?cmd=frappe.integrations.doctype.google calendar.google callback.
  • For the remaining services, add https://yoursite/api/method/frappe.integrations.google oauth.callback as an allowed redirect URI.
  • Under Home > Integrations > Google Services > Google Settings, enter your Client ID and Client Secret.

For Google Maps While Google Maps doesn't require access to Google data, you must create an API key to enable synchronization with Google Maps.

  1. On the Google Cloud Platform, make a new project and generate a new API Key.

Add the API Key to Google Settings under Home > Integrations > Google Services > Google Settings after enabling API Access for the Directions API in the API Library.