API Authentication User Id and Password Using Soup UI

API Authentication User Id and Password Using Soup UI

Environment :

iVend 6.6

Problem Statement :

In Soup UI all API's are exposed , if any end user can use API and see the transaction without any API token. API is configured in unauthenticated access , now we need to configure basic authentication that how to set username and password to get and post API in settings.


Symptoms :

Product Query

Resolution/Work Around :

The hardcoded API token is for mobile user. Need to add "UserName", "Password" with values to request Header.

HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/xml"));
client.DefaultRequestHeaders.Add("username", "APIUSER");
client.DefaultRequestHeaders.Add("password", "APIPASSWORD");
client.BaseAddress = new Uri(endPoint);

Recommendations /Suggestion : N/A

    • Related Articles

    • User forgot the MC password

      ******************************INTERNAL NOTE************************** Environment:  6.6 Problem statement:  After the password was changed, the customer forgot the new MC User password. Resolution/Work Around: 1. Ask the customer to provide old ...
    • Can't create Loyalty user using iVend API

      Environment: iVend 6.5.5 Problem Description: iVend API Error Scenario: Client is using iVend API to create loyalty users through below API as mentioned. As reported , it was working for more than a year but suddenly started throwing an exception. ...
    • Security Role and Security User

      Security Role and Security User Security Roles iVend Retail 6.5 allows the user to set up Security Roles and assign various Security Rights to these roles. You can setup roles like – Manager’s Role, Cashier’s Role, Sales Person’s Role and so on. ...
    • While sending the test email it thrown error as "The SMTP server requires a secure connection"

      Environment: iVend Version 6.6 Problem Statement: While sending the test email it thrown error as “The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 authentication required”. Error ...
    • Getting error user doesn't have login rights (Cloud user)

      Problem Statement Getting error user doesn't have login rights (Cloud user). Issue details It’s a cloud deployment. Customer setup the store manager to access a specific store, but they are getting the error "user doesn't have login rights" while ...