SAP comfort
With SAP comfort, an SAP BTP service key becomes a ready environment with OAuth 2.0 in one step, and the destinations of a subaccount can be taken over as environments. It is a module of Pro. Exported destination files you already import in Free without a network (OData and SAP).
- Edition
- from Pro
- Service key
- command palette Import BTP service key… or
rt sap import-key - Destinations
- command palette Destinations as environments… or
rt sap destinations - Secrets
- never in files: keychain or encrypted browser storage
- Status
- built, not released yet
Import a service key
A service key (JSON) from the SAP BTP holds the credentials of a service. RequestTailor recognises the usual forms: nested with uaa, flat XSUAA and destination service keys, {"credentials": …} and keys with an X.509 certificate.
- Open the command palette and choose Import BTP service key….
- Paste the service key as JSON under Service key or open the file, and check the name under Environment.
- Click Import. The environment is created, unsaved like any change; Open request opens the supplied template.
The environment holds baseUrl (and a variable <endpoint>Url per endpoint of the key), tokenUrl (the UAA address plus /oauth/token), clientId and the secret clientSecret; with X.509 keys the secrets clientCertificate and clientKey. In addition there is the request SAP BTP / Service root (OAuth 2.0) with OAuth 2.0 (client credentials) that reads exactly these variables: one template serves every imported environment. The import has a loss report like every other.

rt sap import-key service-key.json --env BTP-QAS
cat service-key.json | rt sap import-key - --env BTP-QAS
--env names the environment (default: the file name), --collection DIR chooses the collection (default: the one of the current folder), --replace replaces an environment of the same name, --json prints JSON.
Destinations as environments
With the service key of a destination service, RequestTailor reads the destinations of the subaccount and of the service instance (an instance destination hides a subaccount one of the same name) and turns the chosen ones into environments named after the destination. The query runs through the app’s normal requests, so natively on the desktop and through the browser or the companion on the web.
- First import the service key of a destination service instance as above. The dialog then offers List destinations…; without such an environment, Destinations as environments… points you to the import.
- Choose Destinations as environments… in the command palette, then the environment under Destination service and click List destinations.
- Tick the destinations you need and click Create … environments: one environment per destination is created, unsaved.

rt sap destinations service-key.json # list only
rt sap destinations service-key.json --import QAS_ERP # take one over
rt sap destinations service-key.json --all # all supported ones
Supported are the authentication types NoAuthentication (no sign-in), BasicAuthentication (user and secret password) and OAuth2ClientCredentials (tokenUrl, clientId, secret clientSecret), for targets through the internet proxy. A destination’s sap-client becomes the variable sapClient that the OData plugin reads. Everything else (SAML bearer, principal propagation, other auth types, OnPremise and non-HTTP targets) is listed with the reason and not imported. More switches as with import-key: --collection, --replace, --json.
Testing the Integration Suite
The free plugin sap-integration triggers an iFlow through its HTTP endpoint and checks the message processing log as an assertion. SAP comfort adds what happens in the steps in between. The command palette has Integration Suite….

- Payload trace per step with a snapshot: The payload after each step is compared with a stored snapshot (
integration-suite/<suite>/<iflow>.trace.json). This needs the iFlow to run with log level Trace; otherwise the entry says it could not be judged. Timestamps, UUIDs and the order of JSON keys are normalized first;ignoreKeysandignoreStepsnarrow the comparison. A run never writes the snapshot; “Keep this trace as the snapshot” stages it, unsaved, on your command. - Suites over several iFlows:
integration-suite/<name>.suite.jsonnames the trigger requests, the status each log has to end in (COMPLETED,FAILEDfor a negative test) and whether the trace is compared. The summary is green only if every iFlow is. - Link “open in iFlowTailor”: The format of the link is a template in the suite (
{iflow},{tenant},{subdomain}); without a template there is no link.

The module sends nothing itself. Every request goes through the core with your tenant’s environment, so with its tokens, guard and masking. The snapshots are masked once more (fields such as password, secret, token, Authorization). Without a licence the app shows one calm hint per device above a POST request in the iflow folder.
Where the secrets stay
Client secrets, private keys and passwords are never in the collection. The app stores them in the operating system’s keychain (in the web app in encrypted browser storage), rt sap in the keychain, where the desktop app finds them as well. Only the reference is in the repository (Secrets and privacy).
Limits
- X.509 keys are imported (certificate and key as secrets), but a token cannot be fetched with them yet.
- The sign-in lives in the template requests, not in the collection or environment as a default.
- Destination properties such as
URL.headers.*,URL.queries.*and an OAuthscopeare reported in the report but not applied.
See also
- Features at a glance Features · sap
- Docs OData and SAP
- Docs OData workbench
- Docs Environments and variables
- Docs Secrets and privacy
- Sources SAP comfort (Pro)1