TDV Adapter for Pipedrive

Build 22.0.8462

Creating a Custom OAuth App

If you do not have access to the user name and password or do not wish to require them, you can use OAuth authentication. uses the OAuth authentication standard, which requires the authenticating user to interact with via the browser. The adapter facilitates the OAuth exchange in various ways, as described in this section.

Create a Connected App

To obtain the OAuth client credentials, client id, and client secret:

  1. First, login in your account Login Page. After login, go to the Settings page by choosing Tools and integrations from the drop-down menu.
  2. Click Marketplace Manager in the left menu.
  3. Click the Create new app button.
  4. Click the yes or no button.
  5. Enter all the required items and enter a value in the Redirect URI box. If you are making a desktop application, set the Callback URL to http://localhost:33333 or a different port number of your choice. If you are making a web application, set the Callback URL to a page on your Web app that you want the user to be returned to after they have authorized your application.
  6. Click the save button in top right menu after you complete entry. Check your entries on the confirmation screen and click Add a new button if everything OK.
  7. Enabled applications are displayed in the list and the process completes. The OAuthClientId and ClientSecret will be displayed along with the information entered on the process above.

Authenticate to from a Desktop Application

After setting the following connection properties, you are ready to connect:

  • OAuthClientId: Set to the client key in your app settings.
  • OAuthClientSecret: Set to the client secret in your app settings.
  • CallbackURL: Set to the callback URL in your app settings.
  • InitiateOAuth: Set to GETANDREFRESH. You can use InitiateOAuth to avoid repeating the OAuth exchange and manually setting the OAuthAccessToken connection property.

When you connect, the adapter opens the OAuth endpoint in your default browser. Log in and grant permissions to the application. The adapter then completes the following OAuth process:

  1. Gets the callback URL and sets the access token.
  2. Saves OAuth values in OAuthSettingsLocation to be persisted across connections.
  3. Exchanges the returned refresh token for a new, valid access token.

Authenticate to from a Web Application

To obtain the access token, set the following connection properties:

  • OAuthClientId: Set to the client key in your app settings.
  • OAuthClientSecret: Set to the client secret in your app settings.
  • CallbackURL: Set to the callback URL in your app settings.

When connecting via a web application, or if the adapter is not authorized to open a browser window, you need to exchange temporary verification values for the access token:

  1. Call GetOAuthAuthorizationURL. The stored procedure returns the URL to the OAuth endpoint.
  2. Log in and authorize the application. You are redirected back to the callback URL. If you set the GrantType parameter to Implicit, the callbackURL contains the OAuthAccessToken in a query string parameter. If you set the GrantType parameter to code, the callback URL contains the verifier code in the query string parameter named "code". Extract the verifier code and call .

To connect to data, set the following connection properties:

  • OAuthAccessToken

To automatically refresh the access token when it expires, set InitiateOAuth to REFRESH and set OAuthRefreshToken. Alternatively, call the RefreshOAuthAccessToken stored procedure when the access token expires. Given a refresh token as input, the procedure returns a valid OAuth access token.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462