Configuring Destinations for Visualization APIs

Configure destinations to call the Visualization service APIs from SAP BTP services.

Some BTP services use credentials stored in SAP BTP destination to make API calls to external services. You can create a destination in your subaccount to allow the Visualization APIs to be called from the BTP services such as the Workflow service.

Prerequisites

  • You've subscribed to Visualization SaaS application in your subaccount.

  • You've an instance of the Visualization service in your subaccount that is linked to your Visualization SaaS subscription, see Configuration for Using APIs for details.

  • You've created a service key for the Visualization service instance without providing any parameters, see Creating Service Keys for details .

Authentication Types

The OAuth2UserTokenExchange and OAuth2ClientCredentials authentication types are commonly used when calling Visualization service APIs via a destination.

When an authentication type of OAuth2ClientCredentials is used, client credentials are used to authenticate with the Visualization service instance. Client credentials provide access on behalf of a service (as opposed to access on behalf of a user). Internally, when client credentials are used, Visualization uses a special user (the Service user). In this case, folder and visualization access is determined by the access granted to the service user.

When an authentication type of OAuth2UserTokenExchange is used, the user identity that is being used by the calling SAP BTP service is used for the API calls made to Visualization. This means that the folders and visualizations access is applied in Visualization for individual users.

An authentication type of OAuth2UserTokenExchange can be used when the service instance that is making API calls to the Visualization service instance is in the same subaccount as the Visualization service instance or is in a subaccount that has a trust relationship with the subaccount that the Visualization service instance is in.

A destination with an authentication type of OAuth2UserTokenExchange needs to be used to make an API call to a Visualization service instance using principal propagation.

For more information about configuring a service task to use principal propagation, seeConfiguring Principal Propagation for Service Tasks.

Destination Configuration

To create the destination at the subaccount level, enter the destination details as shown in the following table:

Property

Description

Name

Enter a name of your choice

The destination name is used to find the destination and uniquely identifies it in the subaccount.

Type

HTTP

Description

Enter a description

URL

Enter the url value from the api object within the endpoints object in the service key.

Proxy Type

Internet

Authentication

Select OAuth2UserTokenExchange or OAuth2ClientCredentials as per your requirements

Client ID

Enter the client_ID value from the uaa object in the service key

Client Secret

Enter the client_secret value from the uaa object in the service key

Token Service URL

Enter the url value from the uaa object in the service key and append /oauth/token