These instructions walk through the steps for configuring Postman as a third-party application with OAuth 2.0 access to Hybrid Data Pipeline resources using the Authorization Code grant type. Performing these steps offer a quick way to test the Authorization Code flow and see it in action.

Prerequisites

The following prerequisites must be met before you begin.

Configure Postman as a client application

Take the following steps to configure Postman to access Hybrid Data Pipeline resources.

  1. Open Postman.
  2. Select the Authorization tab.
  3. Select OAuth 2.0 as the authorization type.
  4. Select Request Headers from the Add authorization data to dropdown.
  5. Complete the Configure New Token form. For example:

    Grant Type: Authorization Code

    Callback URL: https://www.getpostman.com/oauth2/callback

    Auth URL: https://my-hdp-server-host/oauth2/authorize

    Access Token URL: https://my-hdp-server-host/oauth2/token

    Client ID: eeee5555-66dd-7777-9999-fffff333333c

    Client Secret: 9999tttt-gg22-1212-0606-bbbbb444444z

    Scope: api.access.odata

    Example Configure New Token form:

    postman configure new token form
  6. Press Get New Access Token.

    The Hybrid Data Pipeline login dialog appears.

    login dialog
  7. Enter Username and Password in the dialog. Then press Authenticate.

    The consent dialog appears.

    consent dialog
  8. Press Allow to grant Postman access to your account.

    The Manage Access Tokens dialog appears.

    manage access tokens dialog
  9. Press Use Token to use the access token for access to Hybrid Data Pipeline.
  10. Send the following request to obtain the metadata of your data source.
    GET https://my-hdp-server-host/api/odata4/Oracle_OData/$metadata

    The metadata on the OData endpoint is returned.

    odata metadata