How to use credentials to pass in a username and password to your rest message endpoint?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2022 10:24 AM
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:
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2022 10:55 AM
Hi there!
Can you share screenshot of Message and Method forms, it will help you in guiding further.
Regards,
Palak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 07:28 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 10:22 AM
Hi
Could you paste some screenshots so it will help in guiding you further.
Regards,
Palak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2022 11:23 AM
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