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.
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.