The apps within the G Suite are comprised mostly of cloud-based productivity software—Google Calendar for appointments, Google Drive for file storage and collaboration, and so on. With Nintex Apps's connectors, you can access these cloud applications and use their data alongside the rest of your data—perhaps incorporating the shared calendars of employees into business pages.
Before you begin, you'll need to work within Google's API Manager to enable API usage for your applications and obtain the API credentials you'll be using for your authentication providers. Follow the instructions below to do this, and then learn how to use your chosen Google connection in the appropriate topic.
Setting up a Google API project for Nintex Apps
To actually use any Google API for a Nintex Apps connection, you'll need to do the following within the Google API Manager:
- Create a project within your Google API Manager
- Enable the APIs for your respective services.
- Create OAuth credentials
1. Create a project within your Google API Manager
First, create a project that will house your API credentials and enabled APIs.
- Navigate to the Library tab of Google API Manager .
- Click Project > Create project in the header bar.
- Enter a name for your project, such as Nintex Apps Connections.
- If this is the first API project you've created, choose if you would like email updates from Google and accept Google's Terms of Service.
- Click Create.
2. Enable the APIs for your respective services.
Google does not automatically enable all of its APIs for any project. , you must individually enable each API you wish to use.
- Navigate to the Library tab of your project.
- Begin typing the name of an API you wish to enable, such as Drive.
- Click the name of the API.
- Click Enable.
You may disable your APIs at any time, as well as view traffic, errors, and other metrics from the individual API pages in your Library tab.
3. Create OAuth credentials.
OAuth is an open source standard for authentication, and by far the simplest way to authenticate to Google for your API uses. During this process, you'll create a set of credentials—a client ID and a client secret—that will verify to Google that your Nintex Apps connection can access your API project.
- Navigate to the Credentials tab of your project.
- Click Create credentials.
- Choose OAuth client ID.
- For Application type, select Web application.
- Enter an appropriate name, such as Nintex Apps OAuth.
- For Authorized redirect URIs, enter the redirect URI (also known as callback URL) for your Nintex Apps site. For more information on how to form your redirect URI, see Callback URLs/Redirect URIs for OAuth 2.0 Authentication.
- Click Create.
After doing this, Google will create and display your client ID and client secret. Think of these like a username and password, and protect them as such.
You will use these credentials when setting up the authentication provider for your connections. You can access your credentials at any time by clicking on your credentials within the Credentials tab.
Note: You can actually use one authentication provider for both Google Drive and Google Calendar, as the Nintex Apps connectors handle the scopes.
Set up your Google authentication provider in Nintex Apps
Thanks to Nintex Apps's pre-configured connectors, you can actually use a single authentication provider for any Google connection. To use the OAuth 2.0 protocol—which allows individual end users to authenticate directly with Google—you must provide the API client ID and client secret from your Google project:
-
Navigate to Configure > Connections > Authentication Providers.
-
Click New Authentication Provider.
-
Fill out the necessary fields:
-
Name: Enter a unique name, such as GoogleAuth.
Note: The name for the connection must not have spaces. Spaces in the connection name may cause unexpected behaviors.
-
Authentication Method: OAuth 2.0 / OpenID
-
Provider Type: Google
-
Grant Type: Authorization Code
-
The Authorize and Token Endpoint URLs will be set automatically by the provider type.
-
Default Scopes: This field will be auto-populated with the appropriate scopes for both Google Drive and Calendar.
-
Client ID and Client Secret: Enter the respective credentials for your Google project
-
-
Click Save.
-
If Nintex Apps asks you to create a Remote Site Setting, click OK.
With your authentication provider in place—which tells Google that you have permission to access data—you can now create a new connection to actually obtain that data.