OAuth Authentication

Anubhav24
Mega Sage
Mega Sage

Hi All,

Based on the articles provided in the community , I have gone through the OAuth setup, I have below queries:

My implementation was earlier done through Basic Authentication in REST Step, now I am going to use OAuth.

Now I have done the Application Registry setup , after this I clicked on Get OAuth Token. I receive the tokens.

Query now is :

1)How do I incorporate it into my Flow , do I need to use/select the Oauth profile under credential alias ? See below screenshot: 

Anubhav24_0-1739276831139.png

2)In relation to query 1 , if 1 is not possible do I need to write a REST Message and call it , if yes then I need to supply the refresh token as output ?

3)Coming to the periodic refreshing of tokens , do I need to write a scheduled job , if yes then how do I supply this periodic refresh of tokens as an input to my flow , I saw the videos of refresh tokens being stored in system property.

 

Requesting guidance on this setup as this is my first time setting up OAuth process.

 

 

 

 

3 REPLIES 3

Shruti
Mega Sage
Mega Sage

Hi,

Use REST Step in flow designer

Shruti_0-1739283192644.png

 

Create connection and credential aliases

Select connection alias and pass bearer token in Headers 

Shruti_1-1739283192663.png

 

Shruti_2-1739283192775.png

 

 

@Shruti   , thanks a lot for your reply , could you also let me know the process of refresh token , if we write scheduled job to get the refresh token periodically how will it be stored in the table where both refresh and authorize token are stored.

FinnleyJax
Giga Contributor

Yes, use the OAuth profile in the credential alias or REST Message.