How to pass token as bearer type in OIC REST adapter
Content
Hi All,
we have two REST API
1)For getting the token
https://xxxxxx-xxxx-****-****.xxxxxxxx.net/token
where we are passing the below the information in the body and it is POST request method
{
"grant_type": "self",
"client_id": "{{client_id}}",
"client_secret": "{{client_secret}}"
}
This is the response of above REST API where we were getting the token
{
"$type": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"token_type": "bearer",
"expires_in": 21600,
"refresh_token": null
}
2)https://xxxxxx-xxxx-****-****.xxxxxxxx.net/payment-methods/summary/search?companyNumber=31042
second REST API where we were passing the token in the post man tool by selecting the bearer token.
Now we want to implement the same in OIC,but we couldn't find any option in the rest connection where we can pass the token that is generated from the first API like we can do in postman Tool.