Oauth Authentication Step in Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2025 01:52 AM
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:
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.
- Labels:
-
Script Debugger
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2025 02:25 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader