Custom Auth not working

I want to use custom auth credentials to hide the currently hard coded credentials in my http node.

The problem is, once I transfer the body parameters to the custom credential. The request stops working and returns 400. I am confused.

This works:

but this does not:

yes i have tried toggling “send body” and also (with send body enabled) having empty fields.

Custom Credential:

{
  “body”: {
    “client_id”: “our_client_id”,
    “client_secret”: “our_client_secret”,
    “grant_type”: “client_credentials”,
    “scope”: “https://api.botframework.com/.default”
  }
}

I was missing the content-type header: application/x-www-form-urlencoded

So changing the custom auth to the following fixed it, but it would be also ok to just add the header in the node itself

{"headers": { "content-type": "application/x-www-form-urlencoded" },“body”: {“client_id”: “our_client_id”,“client_secret”: “our_client_secret”,“grant_type”: “client_credentials”,“scope”: “https://api.botframework.com/.default”}}
1 Like

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