Code sample project for implementing the Resource Owner Password Grant using .NET Core

We don’t have a sample for that, but basically it comes down to this:

var client = new AuthenticationApiClient(new Uri("https://YOUR_AUTH0_DOMAIN"));
var result = await client.GetTokenAsync( 
  new ResourceOwnerTokenRequest  {
    ClientId = [...],
    ClientSecret = [...],
    Username = [...],
    Password = [...]
  }
);
1 Like