Outbound REST API with custom header form OAUTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 02:29 AM
How can I pass a custom header as part of the API call I make and from which I have received during the OAuth authentication?
Example: I am using the OAuth Application registry to save the credentials(Client ID and Secret) for a third party with grant type being client credentials.
When I call the token URL I get the access_token as part of the response body and now I want to pass the same access_token to API calls I need to make. how can I achieve this?
I did debug the OAuth script and as part of the postprocessAccessToken, I see access_token is added to paramMap. can somehow I use what is there is the paramMap?
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2022 11:53 AM
Hi, normally an external access_token would be populated into 'oauth_credential' table and you would access it from there.
If you are receiving another parameter\value in your payload that you want to do something with, you should be able to script this from within an extension of OAuthUtil postprocessAccessToken
Can you provide clearer details of your issue\requirement?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 08:10 AM
You can Create a Script Include to trigger your Outbound Rest Calls - This should take care of your rest calls.