GCP integration

We are currently trying to connect to a custom RESTful API, that is hosted on GCP cloud functions/ cloud run. The API is secured using GCP IAM to protect the service. The service has multiple routes i.e. /routeA, /routeB to fetch or write data from backend systems.

Following the documentation Setup for Google Cloud Functions - Genesys Cloud Resource Center (mypurecloud.com) we have encountered numerous issues when trying to call the cloud function/ cloud run instance with GCP auth.

The Google data action has been configured to use a service account (which has the permissions to invoke the cloud function/ cloud run instance). When we specify the cloudfunction trigger url in request URL template, we can hit the function however our API doesn’t support making a POST request to the default route i.e. / so we currently get an error from our API.

When we update the Request URL Template to be the following <cloudfunction_url>/routeA then we get the following error “Execute: No authentication bearer token specified in authorization header.” Is the JWT conditionally created/ added to the authorization header based upon the request url template?

On the lambda and adobe integration you can specify a requestTemplateUri however when I tried to use this with the cloud function url it was removed. Is this supported?

We have also tried to create a webservice integration using the oauth integration to create the JWT, we followed this documentation How to use the User Defined (OAuth) credential type - Genesys Cloud Resource Center (mypurecloud.com) however to authenticate with GCP you have to create and sign the JWT using the service account private key, looking at the documentation it looks like it only supports basic auth for the oauth integration. Is this correct or is there a way to generate and sign a JWT using the oauth integration?

Any help or advice would be greatly appreciated.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.