Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to pass token as bearer type in OIC REST adapter

edited May 9, 2021 6:24PM in Integration 7 comments

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.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!