Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Token required to access Auth0 Management API

$
0
0

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...


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>