WPF .NET native app - to custom API

Just to provide help if anyone else is in this situation.

  1. You need to have a Native Application as well as an API registered.
  2. You must specify the audience in your WPF (or any native) login call. No clear documentation how how to do this in WPF, so here is what I finally found, and it works for me.
var extraParameters = new Dictionary<string, string>();
extraParameters.Add("audience", "your-audience.com");
var loginResult = await _client.LoginAsync(extraParameters: extraParameters);

Hi @naftulisinger,

Welcome to the Auth0 Community!

Thanks for sharing your findings on using a WPF .NET native app to call your API on login. I’m certain this will help the rest of the Community!

If anything else comes up, feel free to reach out to us again.

Kind regards,
Rueben