# WPF .NET native app - to custom API

**URL:** <https://community.auth0.com/t/wpf-net-native-app-to-custom-api/186517>\
**Category:** Dev to Dev Hub\
**Tags:** identifier-first, login-experience\
**Created:** [May 9, 2025, 8:16am UTC](https://community.auth0.com/t/wpf-net-native-app-to-custom-api/186517 "2025-05-09T08:16:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![naftulisinger](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/naftulisinger/32/74670_2.png) [@naftulisinger](https://community.auth0.com/u/naftulisinger)\
**Post date:** [May 9, 2025, 8:16am UTC](https://community.auth0.com/t/wpf-net-native-app-to-custom-api/186517/1 "2025-05-09T08:16:13Z")

</div>

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.

```auto
var extraParameters = new Dictionary<string, string>();
extraParameters.Add("audience", "your-audience.com");
var loginResult = await _client.LoginAsync(extraParameters: extraParameters);

```

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 9, 2025, 3:42pm UTC](https://community.auth0.com/t/wpf-net-native-app-to-custom-api/186517/3 "2025-05-09T15:42:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 23, 2025, 3:43pm UTC](https://community.auth0.com/t/wpf-net-native-app-to-custom-api/186517/4 "2025-05-23T15:43:05Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [September 5, 2025, 8:40pm UTC](https://community.auth0.com/t/wpf-net-native-app-to-custom-api/186517/5 "2025-09-05T20:40:25Z")

</div>


