Skip to main content

I am trying to figure out why “Bearer” is not being included in my authorization header when testing Session Authentication. I’ve included screenshots below of the code and the actual request header. I did include “Bearer” before the access token, but it isn’t carrying through to the request. I have another API connection that uses very similar parameters setup and working. It brings through “Bearer” before the Access Token, but this integration isn’t doing it. I have tested in Postman and the setup works.

I am receiving an Access Token back from the initial Post request. I have created a computed field called access_token, which is what the API calls for. 

 

 

 

I’m wondering if the issue is that the access token is returned in data.access_token and you need to do something like

return {‘access_token’: results.data.access_token}

 


Thanks. I gave it a shot, but it didn’t solve the problem.

I’m wondering if the issue is that the access token is returned in data.access_token and you need to do something like

return {‘access_token’: results.data.access_token}

 

 


Sorry for the slow reply here… Can you share what the actual error message is?  Hopefully there’s something in one of those logs that gives us a clue where this is going wrong.