We need to set up a connection to an external API. This API uses the resource parameter for authentication, so using a legacy named credential is not possible.
However, the new named credential or more specifically the external credential have no option to set an authorization URL.
We have two URLs in this case:
- the API base URL -> https://api-url-base.com/
- the authorization endpoint URL -> https://api-url-base.com/account/Authenticate
The named credential needs to run it's authorization against 2) but all callouts need to go to 1) + endpoint.
Is there any way to achieve this with the new named credential system?
With Legacy Named Credentials I got the Auth Provider which has Authorize Endpoint URL and Token Endpoint URL. But no way to define the resource parameter on authentication.