Oauth Authentication Step in Flow Designer

Anubhav24
Mega Sage
Mega Sage

Hi All,

I am performing one integration through Flow Designer REST step ,before this REST step under SCRIPT Step I am calling script include to form the request JSON to be shared to third party system, currently this integration is based on basic authentication , so for basic authentication I had created one basic authentication profile and a credential alias and configured it in the REST step of the flow action as in below screenshot:

REST Step.png
Now the third party system has moved to OAuth authentication , they have provided us with the URL to receive the token.
My query is that:
1)How can I configure this step in my flow action.
2)Once step 1 is configured and we hit the url for receiving the token do I need to process the response and how to process this response.
3)Where will this token received will it be stored somewhere.

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Anubhav24 

you can configure rest message with OAuth

Then invoke this REST Message in the REST Step to get the token

Then the actual endpoint will use the token from previous step

OR

1) Configure the OAuth details

2) use script to get the access token and store that in output variable

3) use the actual endpoint and send this access token in header

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader