- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2023 05:40 AM
Hi Community,
We have created a custom flow action with a Rest step for an outbound call. We are using OAuth 2.0 for the authentication so, just wanted to know when making a outbound call, how an access token is passed?
Is it automatically done via Connection and Credential alias that is mapped to the Rest step? OR
Do we have to do any additional configuration for the same?
Kind Regards
Suresh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2023 06:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2023 07:22 AM - edited ‎10-20-2023 07:24 AM
While testing I observed that the new access token was automatically fetched w/o having refresh token.
Note: When I was referring third party application documentation, I got to know that when using OAuth grant-type as Client Credentials it only returns access token.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2023 06:14 AM
It is automatically done via connection credential aliases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2023 06:26 AM
Thanks @Shruti , for the response.
What if the access token is expired? How a new access token is fetched? Is this also taken care by connection and credential alias?
Kind Regards
Suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2023 06:34 AM
Yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2023 11:27 PM
Hi @Shruti ,
Since, we only have access token and no refresh token so, when access token is expired a new token is not fetched automatically. Do we have to write any script for it so, that before making a rest call it will first fetch the new access token from third party? If so, could you please help me with the script?
Note: We are using grant-type as Client Credential
Kind Regards
Suresh