Expand my Community achievements bar.

Never miss an update of the Adobe Journey Optimizer Community Lens! Subscribe now to get the latest updates, insights, and highlights delivered straight to your inbox every time a new edition drops.

Authentication Payload for custom action

Avatar

Level 1

The test authentication is showing failed again and again when creating a custom action in adobe journey optimiser , but the same api is working fine in postman and reqbin, so how to resolve it.

7 Replies

Avatar

Employee Advisor

can you share the payload you are using in custom authentication ?

Avatar

Employee Advisor

@AvaniJain  what is the auth type? can you share more details around the use case?

Avatar

Level 1

The auth type is bearer token

Avatar

Employee Advisor

@AvaniJain  you might have to get endpoint whitelisted, can you log a support case for the same, they would be able to check error as well on the server side.

Avatar

Employee Advisor

@AvaniJain Here is one of the examples of custom Authorization payload and it needs to be adapted based on what you have working in postman. Can you validate with this ?

{
 "type": "customAuthorization",
 "authorizationType": "Bearer",
 "endpoint": "<your_auth_endpoint>",
 "method": "POST",
 "headers": {
  "Content-Type": "application/x-www-form-urlencoded"
 },
 "body": {
  "bodyType": "form",
  "bodyParams": {
   "grant_type": "client_credentials",
   "client_id": "<client_id>",
   "client_secret": "********",
   "scope": "<scope_details>"
  }
 },
 "tokenInResponse": "json://access_token",
 "cacheDuration": {
  "duration": 86400,
  "timeUnit": "seconds"
 }
}

 Reference - https://experienceleague.adobe.com/en/docs/journey-optimizer/using/configure-journeys/data-source-jo... 

Avatar

Level 1

I have my client id and scope in headers , and my body is completely empty. My request is working completely fine in postman and reqbin with no body and only headers .

 

Avatar

Employee Advisor

can you share the curl ?