• Convenience function to create a destination from the provided service binding. Transforms a service binding to a destination of type OAuth2ClientCredentials. If a JWT is provided as part of the options, the tenant in the JWT is used for the client credentials grant, else the provider tenant is used, wherever applicable.

    Parameters

    • service: Service

      The service binding to transform.

    • Optionaloptions: { jwt?: JwtPayload } & CachingOptions & { url?: string }

      Options used to transform the service binding.

      • Optionaljwt?: JwtPayload

        The JWT payload used to fetch destinations.

      • Optionalurl?: string

    Returns Promise<Destination>

    A promise returning the transformed destination on success.

    Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.