oAuth 2.0 REST outbound API Integration issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2022 07:08 AM
HI Team,
I am trying to make a REST API outbound integration from SERVICENOW, for which i am to use oAuth 2.0 authentication with grant type as "password".
I need to understand where in which table in servicenow, can i use to store the username and password.
I am using following parameters to generate the token and i am to send all of them in the request body to get the token, without the username and password, the token generated gives Authentication error.
grant_type --- password
client_id --- **********
client_secret --- **********
scope --- **********
username : --- **********
password :--- **********
Expecting some suggestions here.
Thanks
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2022 09:52 PM
Hello Shraddha,
You may use this "oauth_2_0_credentials" table to store username and password.
You can go to "Connections & credentials" Application menu and go to "credentials" and when you click on "new", following options will be shown..
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2022 10:11 PM
Regards
Sulabh Garg