I have tested the login web service using postman and I was able to acquire the token.
I have tried authenticating with the api using a C# console application but it always results in 401 unauthorized with the error code : {invalid_credentials}
Below is the code sample:
var client = new RestClient(loginRequestIntegrationDTO.BaseUrl);
var request = new RestRequest(loginRequestIntegrationDTO.EndPoint, Method.POST);
request.RequestFormat = DataFormat.Json;
request.AddParameter("Username", loginRequestIntegrationDTO.Username, ParameterType.RequestBody);
request.AddParameter("Password", loginRequestIntegrationDTO.Password, ParameterType.RequestBody);
var apiResponse = client.Execute(request);
Any reason why i cannot connect through the application ?