Destination SDK Failing because of invalid Auth token(Authencation Failed)
we are trying to create a destination sdk to swoogo faccing issue which authentication type to use had tried OAuth 2 with Client Credentials Grant it is not working please suggest what kind of customerauthentication to be used for these destination .
below for swoogo request api token for refernce :
https://swoogo.readme.io/reference/post_oauth2-token
Swoogo Api:
https://swoogo.readme.io/reference/updatecontact
these was used in our config json it was not working:
"customerAuthenticationConfigurations": [
{
"authType": "OAUTH2",
"grant": "OAUTH2_CLIENT_CREDENTIALS",
"accessTokenUrl": "https://api.swoogo.com/api/v1/oauth2/token",
"clientId": "XXXXX",
"clientSecret": "XXXXXXXXXXXXXX",
"options": {
"useBasicAuth": true
}
}
],