How to configure oauth2 authorization in Webservice connector

Hi All,

Any suggestions on how to configure oauth2 authentication for below attached PostMan token request.

Thanks in advance,
Venu

It is a standard supported auth method for the Web Services connector. For more details refer to the Web Services connector guide document.

In the various Connector Operation configs such as Account/Group Aggregation etc, add a Header called “Authorization” with a value of “Bearer $application.accesstoken$”.

Thanks Paul, looks like it was a connectivity issue, once it is resolved I will try your recommendation.

Thanks Paul, it works now after resolving the connectivity issue. Appreciate your answer.

I have configured the webservice connector the same way described above.
Getting error while testing connection -
Exception occurred in Test Connection. Error: Exception occurred while generating access token: Unable to generate access token. Response returned: {“error”:“invalid_client”,“description”:“multiple credentials specified”,“error_description”:“multiple credentials specified”}

Hi Ronika,

Seeing this message, I think you need to put the informations about the connection. Could you show us the configurations that you are using? Maybe we can help you.

I am also trying to do the same thing but I keep getting this error when I try to do test connection:

Exception occurred in Test Connection. Error: Exception occurred while generating access token: Unable to generate access token. Response returned: {“status”:“400”,“timeStamp”:“2023-04-12T18:23:12+0000”,“error”:{“errorId”:“17e200a2-c0d7-44a5-a341-0fcec3bad9c5”,“message”:null,“code”:“invalid_request”,“description”:“Cannot generate token. Bad request”,“details”:null}}

Hi Harman,

You need to check the token call settings, because apparently the problem is not in the testConnection but in the token request, you can review the token call to verify that everything is correct, then after this validation, check if the testConnection is arriving and bringing the necessary information.

Thanks.