Skip to main content
Question

Bearer not included in Test Header


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. 

 

 

 

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Forum|alt.badge.img+9
  • Zapier Staff
  • 331 replies
  • April 27, 2022

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}

 


  • Author
  • New
  • 1 reply
  • April 27, 2022

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

Zane wrote:

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}

 

 


Forum|alt.badge.img+9
  • Zapier Staff
  • 331 replies
  • May 7, 2022

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.