Published using Google Docs
How to Create Keys for Google OAuth
Updated automatically every 5 minutes

How to Create Keys for Google OAuth 2.0

This document will guide you through the process of creating a set of Google Credentials so that you can use Google Apps functionality, such Google Drive with BBj, Barista, and Addon.  You’re probably reading this document in response to an error message that states:

Client ID and Client Secret must be set. See”  This document will show you how to resolve that error by obtaining and setting Google App keys.  

In order to set keys for a BBj installation, you will need access to the file and be ready to restart BBjServices so that your keys can take effect.

In order to create a set of keys, you will need an associated Google App project. To create the project:

  1.  Visit and log into your account.
  2. Click the blue [Create Project] button on the right side of the page, or click the [Select a Project] box near the top of the page and select "New Project".

  1. Give the project a name related to what you will be using the OAuth keys for, and then press the [Create] button to create your new project.

Once you’ve created the project, enable your project to use the Google Drive API (or whatever actual API you plan to use with the keys):

  1. Click on the APIs & Auth=>APIs node in the left navigation tree of the page and then find and click the “Drive API” link under the “Google Apps APIs” heading.
  2. Press the [Enable API] button.  This authorizes your app to access Google’s web-based API interface.

Next,  generate your application credentials:

  1. Click on the APIs & Auth=>Credentials node in the left navigation tree of the page.
  2. Click on the “OAuth consent screen” tab

  1. Fill out any missing required fields such as the email address and product name and then hit [Save]

  2. Click back on the “Credentials” tab, then click on the “Add credentials” combobox.  Select “OAuth 2.0 client ID”.
  3. Choose “Other”, specify a name for the set of keys and then click the [Create] button.
  4. You now have the credentials you need for your application.  Copy these values and press [OK].
  5. In your, add these two properties:
    com.basis.util.goauth2.clientid=<your client id>
    com.basis.util.goauth2.clientsecret=<your client secret>
  6. Restart BBjServices, and now you have the Client ID and Client Secret needed to access Google APIs in your application.