Can we use OAuth 2.0 authentication via IntegrationHub?

Suresh93
Tera Guru

Hi Community,

 

We have a requirement to integrate third party application via IntegrationHub. So, for this we have created a custom flow Action which will do a REST (POST) call to that application. However, not sure how to setup OAuth 2.0 and use it in flow action?

 

Can someone please guide me on this? TIA!

 

Also, wanted to understand whether ServiceNow provides OOTB generic flow action which we can dynamically use it for any outbound call?

 

Kind Regards,

Suresh

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Please check the below article and video for the same:-

 

https://www.servicenow.com/community/in-other-news/two-way-to-configure-oauth-2-0-outbound-rest-inte...

 

https://www.youtube.com/watch?v=XS8hLS8PcCY

 

Please mark my answer as correct based on Impact.

View solution in original post

The Guide is available at Pothi 225 ₹ and Payhip : 3$. Pothi : https://store.pothi.com/book/ebook-karthik-parthasarathy-zoom-meeting-scheduler-servicenow/ Payhip : https://payhip.com/b/lgy2 In this video, we will understand what is Integration Hub and see how we can use it. Create Connection ...
3 REPLIES 3

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Please check the below article and video for the same:-

 

https://www.servicenow.com/community/in-other-news/two-way-to-configure-oauth-2-0-outbound-rest-inte...

 

https://www.youtube.com/watch?v=XS8hLS8PcCY

 

Please mark my answer as correct based on Impact.

The Guide is available at Pothi 225 ₹ and Payhip : 3$. Pothi : https://store.pothi.com/book/ebook-karthik-parthasarathy-zoom-meeting-scheduler-servicenow/ Payhip : https://payhip.com/b/lgy2 In this video, we will understand what is Integration Hub and see how we can use it. Create Connection ...

Thanks @Saurav11 , for providing helpful resources.

Chaitali_Vale
Mega Sage
Mega Sage

Hello @Suresh93 ,

 

Setting up OAuth 2.0 in ServiceNow and using it in a flow action involves several steps. Here's a high-level overview:

**Step 1: Create OAuth 2.0 Provider**

1. Log in to your ServiceNow instance as an admin.

2. Navigate to "System OAuth" in the application navigator.

3. Create a new OAuth 2.0 provider record. You'll need to provide details like the name, client ID, client secret, authorization URL, token URL, and other relevant information. These details depend on the OAuth provider you're integrating with (e.g., Google, Microsoft, etc.).

**Step 2: Define OAuth 2.0 Flow Action**

1. In the application navigator, go to "Flow Designer."

2. Create a new flow or edit an existing one.

3. Add a "Flow Action" step to your flow.

4. Configure the flow action to perform the desired operation that requires OAuth authentication.

**Step 3: Configure OAuth 2.0 in Flow Action**

1. Within the flow action step, you'll need to configure OAuth 2.0 authentication. In the "Properties" or "Settings" of the flow action step, find the OAuth settings.

2. Select the OAuth 2.0 provider you created in Step 1 from the list.

3. Map the OAuth tokens and other relevant data to variables in your flow action.

**Step 4: Test Your Flow**

1. Save and activate your flow.

2. Trigger the flow to test it. Make sure that the OAuth authentication works as expected, and the flow action executes successfully.

Remember that the specific configuration and steps may vary depending on the OAuth provider and the exact requirements of your integration. Ensure you have the necessary permissions and OAuth credentials from your chosen provider.

 

Please mark my answer correct or helpful, if applicable.

Thanks & Regards,

Chaitali Vale