I have a WPF client using RestSharp and WEB API Service. I try to use HttpBasicAuthenticator as follows:
HttpBasicAuthenticator
RestRequest login = new RestRequest(\"/
RestClient restClient = new RestClient(baseUrl); restClient.Authenticator = new RestSharp.Authenticators.HttpBasicAuthenticator("admin","22"); RestRequest login = new RestRequest("/api/users/login", Method.POST); IRestResponse response = restClient.Execute(login);