Configure Flow Designer Rest Step to use OAuth Profile Credentials

bvlo
Tera Expert

Currently, I have a Rest Message configured to use OAuth 2.0 as its authentication type. I have an HTTP method configured that returns a user id when I pass in an email address. 

bvlo_3-1688403864335.png

 

 

 

Is there a way to configure the Flow Designer REST step to use the same configured OAuth profile under the connection details?

bvlo_4-1688403908160.png

 

I am able to use a script in flow designer that utilizes my configured HTTP method, but I would like to utilize the REST step action.  

Thank you in advance. 




4 REPLIES 4

NBeheydt
Tera Expert

Were you able to find a resolution for this?

No - what we ended up doing was configuring the rest message in ServiceNow and associating the OAuth profile to that Rest Message. We then used a script step in Flow Designer to call the rest message and pull back outputs. Let me know if you need further details 

ganeshpa
Tera Contributor

Looking for same, is it possible to use oauth 2.0 in flow rest step what you showing in above flow rest action.. can we have it in define connection inline ? Is there way to use oauth 2.0 in flow ?

maheshbingi
ServiceNow Employee
ServiceNow Employee

To configure the Flow Designer REST step to use an OAuth profile, you can utilize theConnection & Credential (C&C) Framework with a Configuration Template. The REST step employs a connection & credential alias record associated with http_connection and oauth_2_0_credentials records. By referencing the desired oauth_entity_profile from oauth_2_0_credentials, you can seamlessly integrate your OAuth setup within the action designer's REST step.

 

Additionally, you can import a REST Message into a REST Step

 

For a deeper understanding of OAuth flows in ServiceNow, refer to the following resources: