How to use credentials to pass in a username and password to your rest message endpoint?

nick0989
Tera Contributor

I currently have a REST Message set up with a POST method to log into a third party service. When trying to use Basic authentication with username and password, I will get the following error: 

find_real_file.png

 When I remove the authentication and pass in an object to the "Content" HTTP query parameters section with a username and password, it will work just fine.

However, I have been asked to use credentials to pass in the username and password so they can manage the authentication from credentials and not within each endpoint.

I have tried using the Basic authentication credentials drop down menu item but it never works. I create the credential, give the username and password the same values as if I were to add it to the Content HTTP query parameters and it will not work. Username keeps saying it is null.

What seems to be the problem?

4 REPLIES 4

Palak Gupta
Tera Guru
Tera Guru

Hi there!

Can you share screenshot of Message and Method forms, it will help you in guiding further.

Regards,

Palak

I had to pass in a username and password inside of the "content" section in order for this to work. But I thought that the credentials username and password was all that I needed. Apparently credentials aren't working. Unless the username and password from the credentials mean something entirely different.

Hi @nick0989 ,

Could you paste some screenshots so it will help in guiding you further.

Regards,

Palak

Saurav11
Kilo Patron
Kilo Patron

Hi,

Can you share some screenshots of your configuration as it would be easier to understand your issue and also we may assist you better