Hello!
public IActionResult Index() { var credentials = Convert.ToBase64String(Encoding.UTF8.GetBytes($"126fe866bac36aaf17fbe229ff91e7b63:fe2a194fb273c19cad7771397c1b3111a")); using var message = new HttpRequestMessage(new HttpMethod("GET"), "http://localhost:5000/odata/v1/customers"); var httpClient = new HttpClient(); var contentType = new MediaTypeWithQualityHeaderValue("application/json"); string postUrl = "http://localhost:5000/odata/v1/categories"; httpClient.DefaultRequestHeaders.Accept.Add(contentType); httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", credentials); var request = httpClient.GetAsync(postUrl).Result; var response = request.Content.ReadAsStringAsync().Result; dynamic stuff = JObject.Parse(response); return View(); }
User Permission
Image: https://prnt.sc/RsFpY8t3AYO9