private static ToDoListDataAPI NewDataAPIClient() { var client = new ToDoListDataAPI(new Uri(ConfigurationManager.AppSettings["toDoListDataAPIURL"])); // Uncomment following line and entire ServicePrincipal.cs file for service principal authentication of calls to ToDoListDataAPI //client.HttpClient.DefaultRequestHeaders.Authorization = // new AuthenticationHeaderValue("Bearer", ServicePrincipal.GetS2SAccessTokenForProdMSA().AccessToken); return client; }
private static ToDoListDataAPI NewDataAPIClient() { var client = new ToDoListDataAPI(new Uri("http://localhost:45914")); // Uncomment following line and entire ServicePrincipal.cs file for service principal authentication of calls to ToDoListDataAPI //client.HttpClient.DefaultRequestHeaders.Authorization = // new AuthenticationHeaderValue("Bearer", ServicePrincipal.GetS2SAccessTokenForProdMSA().AccessToken); return client; }
private static ToDoListDataAPI NewDataAPIClient() { var client = new ToDoListDataAPI(new Uri(ConfigurationManager.AppSettings["toDoListDataAPIURL"])); // Uncomment following line and entire ServicePrincipal.cs file for service principal authentication of calls to ToDoListDataAPI //client.HttpClient.DefaultRequestHeaders.Authorization = // new AuthenticationHeaderValue("Bearer", ServicePrincipal.GetS2SAccessTokenForProdMSA().AccessToken); return(client); }