Hi Team,
Can someone please help me in configuring a Get Request node where the authentication is via a bearer token.
Thanks in advance.
Swapnil
Hi Team,
Can someone please help me in configuring a Get Request node where the authentication is via a bearer token.
Thanks in advance.
Swapnil
Hi @Swapnil_Bhure , you need to generate the token first, and then pass it as a header.
The value should be in the format of Bearer YourToken
. For example:
Bearer ab123ade4356f355653edf23455
As for the key/variable name, it depends on what the api says to use. Usually it’s “Authorization”.
EDIT: Here’s how you would do it in the GET Request node:
Go to the “Request Headers tab”, and click on “Add header parameter”
Then enter “Authorization” as Header key, and “Bearer YourToken” (replace “YourToken” by the generated token) as Header value:
Click OK, and the header will be added:
You may need to add other headers, depending on what the api says to add.
Of course, you can build the value for the token header dynamically, but first, test with static/hardcoded token to see if it works.
After that, you can dynamically add it - for example String Manipulation join("Bearer ", $token$)
and pass it as a flow variable to the GET Request header
Thanks @bruno29a . It worked
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.