oAuth 2.0 REST outbound API Integration issue

Shraddha Agrawa
Tera Contributor

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.

 

find_real_file.png

Thanks

2 REPLIES 2

Sulabh Garg
Mega Sage
Mega Sage

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..

find_real_file.png

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!! 

Regards

Sulabh Garg

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

@Shraddha Agrawal - Hope my answer helped you, Please mark the my response as correct & helpful so that this thread can be closed and others are benefitted by this.

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg