Configure a Google Drive Content Connector

After you configure and enable a Google Drive content connector, you can connect to Google Drive and pull required content from it into Oracle Content Management.

To configure a Google Drive content connector:

  1. Get the Oracle Content Management host name and authorization URL details.
    1. Sign in to Oracle Content Management as an Administrator or Developer.
    2. Click Integrations in the Administration area of the navigation menu on the left.
    3. In the Integrations menu, choose Content Connectors.
    4. Click the check box next to the Google Drive content connector.
    5. Click Create.
    6. On the General tab, note the Redirect URL, which will be in this format:
      https://<hostname>.<domainname>.com:<port>/documents/web/AR_COMPLETE_AUTHORIZATION

      The Redirect URL field is truncated. Double-click the field to copy the value to your clipboard.

  2. Create a Google Drive app:
    1. Go to https://console.developers.google.com/project in a browser window.
    2. Sign in with a Google user name and password.

      If you've already created projects in the Google Developers Console, you will see the list of created projects. If not, the Manage resources screen will appear.

    3. Click Create Project.

      You’ll be redirected to a page where you can enter Project Name and Project ID values to help you recognize your project in the console.

    4. Click Create.

      Your project will be created, and you'll be redirected to your projects list in the console.

    5. Go to the dashboard through menu navigation, APIs & Services > Dashboard, from the left corner icon.
    6. Click the name of the project you recently created to go to your project dashboard.
    7. Select a library. Go to Library page through menu navigation, APIs & Services > Library, from the left corner icon.
    8. Search for the "Google Drive API" library, then select and enable it.
    9. Search for the "Google Picker API" library, then select and enable it.
    10. From the left corner icon, navigate to APIs & Services > Credentials > OAuth Consent Screen tab. Check your email address and enter your product name, GDrivePickerApp, and save it.
    11. Publish the application.
    12. Click the Credentials tab to open a popup in which you can select an OAuth client ID option under the Create credentials select box.
    13. Select your application type, Web application.
    14. Name the client and add the Authorized redirect URIs.
      1. In Authorized redirect URI, paste the redirect URL you copied from Oracle Content Management.

        The redirect URI must be the same as your application installation URL.

      2. In Authorized Javascript Origins, paste the redirect URL, but remove everything after the port.

        If you get the message "Invalid Origin", click the authorized domains list and add your domain.

      3. Press ENTER, and then click Save.

      Once you have added to the authorized domains, you should be able to create an OAuth ID. Note the values of Client ID and Client Secret.

  3. Create credentials to get the API key (Developer Key). Click Create Credentials and then API key in the drop-down menu. Note the value of API Key. This is the Developer Key you'll enter in the Oracle Content Management when you configure the Google Drive connector.
  4. Get the App ID.
    1. From the left corner icon, navigate to IAM & admin > Settings.
    2. From that page note the value of Project Number. This is the App ID you'll enter in the Oracle Content Management when you configure the Google Drive connector.
  5. Configure the connector in Oracle Content Management.
    1. Go back to configuring the Google Drive content connector in Oracle Content Management.
    2. On the General tab:
      • In the Connector tags field, you can assign tags that will be applied to assets pulled from the content connector (for example, the content connector name). This lets you search for all items from that content connector in an asset repository.
      • Make sure Enabled for end users is selected.

        You can review the Terms of use and Privacy Policy below the Enable for end users button.

    3. Click the Additional Fields tab, and enter the following information:
      • Client ID
      • Client Secret
      • Developer Key (API Key)
      • App Id (Project Number)
    4. When you're done, click Save.
  6. Associate the connector with one or more asset repositories.
    1. Click Assets in the Administration area of the navigation menu on the left.
    2. Open an existing repository or click Create to create a new one.
    3. If you're creating a new repository, specify the repository name, publishing channels, languages, and other options.
    4. Under Connectors, select one or more connectors to associate with the repository.

      This menu lists all the content connectors that have been configured and enabled in your Oracle Content Management instance.

      If any of the connectors you select have content types associated with them, the types appear under Content Types.

After a Google Drive content connector is enabled, configured, and associated with a repository, it's available in the asset repository for Oracle Content Management users to import content, through the Add drop-down menu, Import from Google Drive option on the Assets page.