Skip to content

Commit

Permalink
editing
Browse files Browse the repository at this point in the history
  • Loading branch information
renejeglinsky committed Feb 21, 2025
1 parent 344605a commit 18a8803
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions java/cqn-services/remote-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CAP's clear recommendation is to use _Remote Services_ over directly using the S
To learn more about how to use _Remote Services_ end to end read the [Consuming Services cookbook](../../guides/using-services).
:::

## Configuring Remote OData Services
## Remote OData Services

To enable _Remote Services_ for OData V2 or V4 APIs in an application, add the following Maven dependency to your project:

Expand Down Expand Up @@ -199,6 +199,7 @@ cds:
```
:::

#### Consuming APIs from Other IAS-Applications
If your CAP application is using IAS and you want to call a _remote API_ that is provided by another IAS-based application (ie. Application2Application scenario), you can utilize a simplified security configuration in the destination.
As a pre-requisite, your CAP application and the called application need to trust the same IAS tenant and you need to define a dependency in IAS to consume the respective API provided by the _remote API_.

Expand All @@ -211,7 +212,9 @@ Create a destination configuration with the following parameters:

At runtime, this destination configuration will use the bound `identity` service instance's credentials to request a token for the _remote API_.

[Learn more about consuming APIs from Other IAS-Appications in the **SAP Cloud Identity Services documentation**.](https://help.sap.com/docs/cloud-identity-services/cloud-identity-services/consume-apis-from-other-applications){.learn-more}
[Learn more about consuming APIs from other IAS-Applications in the **SAP Cloud Identity Services documentation**.](https://help.sap.com/docs/cloud-identity-services/cloud-identity-services/consume-apis-from-other-applications){.learn-more}

#### Retrieve Destinations

The CAP Java SDK obtains the destination for a _Remote Service_ from the `DestinationAccessor` using the name that is configured in the _Remote Service_'s destination configuration.

Expand Down

0 comments on commit 18a8803

Please sign in to comment.