Configuring Authentication

To access Marketo data stores, you must authenticate the connection using the OAuth 2.0 protocol. You can do this by providing a valid access token, or by providing information about your custom Marketo service so that the connector initiates an OAuth 2.0 authentication flow to retrieve and use the corresponding access token.

Using an Access Token

If you already have a valid access token, you can authenticate your connection by providing the token in the connection URL.

To authenticate using an access token:

  • Connect to the server using a connection URL written in the following format:
  • jdbc:marketo://;Host=[Endpoint];Auth_Type=OAuth 2.0;Auth_AccessToken=[YourAccessToken]

    The variables are defined as follows:

  • [Endpoint] is the endpoint of the Marketo server that you are connecting to. For information about how to find your endpoint value, see Finding Your Marketo Host Information.
  • [YourAccessToken] is your OAuth 2.0 access token.

For example:

jdbc:marketo://;Host=123-ABC-321.mktorest.com;Auth_Type=OAuth 2.0;Auth_AccessToken=kP9PcyQ7prK2LwUMZMpFQ4R+5VE

Using Your Marketo Service Information

You can configure the connector to retrieve and use an access token based on information about your custom Marketo service. To do this, provide your service information in the connection URL.

To authenticate using your Marketo information:

  • Connect to the server using a connection URL written in the following format:
  • jdbc:marketo://;Host=[Endpoint];Auth_Type=OAuth 2.0;Auth_Client_ID=[YourClientID];Auth_Client_Secret=[YourClientSecret]

    The variables are defined as follows:

  • [Endpoint] is the endpoint of the Marketo server that you are connecting to. For information about how to find your endpoint value, see Finding Your Marketo Host Information.
  • [YourClientID] is the client ID associated with your Marketo service.
  • [YourClientSecret] is the client secret associated with your Marketo service.

For example:

jdbc:marketo://;Host=123-ABC-321.mktorest.com;Auth_Type=OAuth 2.0;Auth_Client_ID=f145kn9Pcyq9pr4lvumdapfl4rive;Auth_Client_Secret=5kn9Pcyq9pr4lvu123pfl4r57

The connector uses these settings to go through an OAuth 2.0 authentication flow and authenticate your connection to Marketo.

Related Topics