E9.2 Authorization token when calling external REST API

sam123

Active Member
I need to invoke an external REST api. One resource will return the bearer token and I need to use it and pass to the subsequent call. It works fine in postman but to acheieve the same thing iusing JDE orch, I m having some challeneges. Because, the returned token is dynamic and changing for each call, I have to save it in a variable. In the next step, I append "Bearer" to this token and send it in the headers section. It comes back as unauthorized. Not sure what I m doing wrong here. Any ideas are greatly appreciated.
E 910, TR 9.2.2.4
 

jolly

VIP Member
Away from the tools right now so can’t check. But pretty sure the authentication options on your connection object handle this for you. I’ve never had to bother calling a token api. Postman also knows about this.
 
Top