I have a Web API written in ASP .Net Core 1.1 MVC. I am using Auth0 as the authentication server.
I am trying to access the Auth0 Management API from my ASP .Net Core 1.1 Web API. According to http://auth0.github.io/auth0.net/ I can do the following:
var apiClient = new ManagementApiClient("token", new Uri("https://YOUR_AUTH0_DOMAIN/api/v2"));
var allClients = await apiClient.Clients.GetAllAsync();
To get a list of all clients. This requires that I provide a **token** to the Auth0 API. Would this token be the one that my web API receives from the calling client (in our case a web app and a IONIC2 phone app) when they call the web API? If so, anyone know how I can get said token from my web API controller action? Or is this another token I should be getting from elsewhere?
Thank you...