Encrypt password in REST call

ppapp
Kilo Explorer

I'm making a rest call from an external application to ServiceNow and I'm using basic authentication in the REST call.

Currently the password is being sent in plain text over HTTPS but I would like to have the password encrypted during the call. I know in the midserver config file that the user password gets encrypted. Is there a way for me to encrypt the password in a way that ServiceNow can decrypt it on the other end?

Thanks

Phil

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Philip,



So your question is you have some external application which is consuming REST endpoint with GET method.


You want to send the username and password as encrypted over HTTPS. This you will have to check how you can do in the external application.


how it relates to ServiceNow internal functionality.


ServiceNow has given you endpoint, GET method, username and password. It depends on external application on how to consume the web service.



As far as I know whenever you consume REST API with basic authentication the username and password in base64encoded and put in Authorization header of HTTP so that it is not visible in the URL



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Philip,



Any update on this?


Can you mark my answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.



Regards


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader