Digest Auth in servicenow outbound rest message

Kishor O
Tera Sage

 I have username and password which is of type digest auth I can able to get response in postman but how can I do the same in servicenow.

Attached the image of postman , please have a look.

 

KishorO_0-1699522826983.png

 

Thanks

3 REPLIES 3

SLK Gupta
Tera Guru

Hi @Kishor O ,

 

It looks like you want to use the Outbound Rest message,


If you want test the similar way of responce like POSTMAN in ServiceNow OOTB options, You can use REST API Explorer.

 

use the below screenshot for navigation for REST API Explorer.

SLKGupta_0-1699524331734.png

 

If my responce helps you in anyway, please mark it as helpful @Kishor O .

 

Thanks&Regards,

S. Lakshmikanth Gupta.

 



Can you explain how we can use Digest auth in servicenow.

Kishor, if you just want test how post method works using rest message without third party app like postman, you can use the servicenow OOTB functionality. For example we can use this to create a record by using POST method, Select the Table(like Incident) and add fields(short_description, impact) in request body.

SLKGupta_0-1699525726847.png

 

SLKGupta_1-1699525824760.png

 

Select Send, if it is successfull you will get status code as 201(which means success).

SLKGupta_2-1699525991772.png

You can even check if the particular record is created or not by post method by using rest message, by going to that table and check the record which is created.

 

SLKGupta_3-1699526112277.png

Here, i just shown only one method. you can explore remaining methods as per you requirement @Kishor O.

 

you can refer further in this youtube video: https://youtu.be/_R12XI9vTE4?si=vbDilZZhh6EO2hf-

 

if you want to know authentication methods we will use in Outboun Rest Message are: 

SLKGupta_4-1699526954284.png

 

For, digest auth you can refer this link: https://docs.servicenow.com/en-US/bundle/vancouver-platform-security/page/integrate/single-sign-on/c... 

 

If my answer helps you anyway please mark it as helpfull @Kishor O.

Thanks&Regards,

S. Lakshmikanth Gupta.