How to pass Access token for outbound call in flow action?

Suresh93
Tera Guru

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

2 ACCEPTED SOLUTIONS

Shruti
Mega Sage
Mega Sage

It is automatically done via connection credential aliases

View solution in original post

Suresh93
Tera Guru

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.

View solution in original post

5 REPLIES 5

Shruti
Mega Sage
Mega Sage

It is automatically done via connection credential aliases

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

Yes

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