Instance to Instance Flow Action with REST step using OAuth 2.0 via connection & credentials alias
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tuesday
We are trying to call a REST API in one of our instances from another instance using a Flow Action. The REST API requires OAuth 2.0 credentials. We can successfully call the REST API from Insomnia passing the username/password and client ID/Client Secret.
We have set up the Connection & Credentials to use in the Flow Actions REST Step. However, when we call the REST Step we keep getting the error "Method failed: (/api/now/table/sys_user) with code: 401 - Invalid username/password combo".
How do we ensure we can pass in the Username & Password for the user? There doesn't seem to be anywhere in the credentials to add anything except the Client ID/Password.
We are trying to work this out as we currently have REST APIs in our sub-prod instances that are called from our prod instance that use basic auth. We want to move this from basic auth to OAuth.
