title: WPF App - AzureAD Audience validation failed
body: <p>So I'm stuck...</p>
  <p>I have a simple api running on Azure. It has AzureAD configured according to company policy.
  I can access the api via my browser fine. Also tried postman to access which also works fine with the following settings:</p>
  <p>Type: OAuth 2.0</p>
  <pre><code>Grant Type: Implicit
  Callback URL: https://login.microsoftonline.com/common/oauth2/nativeclient
  Auth URL: https://login.microsoftonline.com/{{tenant_id}}/oauth2/authorize?resource={{client_id}}
  Client ID: {{client_id}}
  Scope: api://{{client_id}}/gh_client_access
  </code></pre>
  <p>Now I'm trying to access via a WPF app using the same settings. I'm using MSAL.
  In my app I configured the following:</p>
  <pre><code>static App()
  {
      _clientApp = PublicClientApplicationBuilder.Create(ClientId)
          .WithRedirectUri(&quot;https://login.microsoftonline.com/common/oauth2/nativeclient&quot;)
          .WithB2CAuthority($&quot;https://login.microsoftonline.com/{Tenant}/oauth2/authorize?resource={ClientId}&quot;)
          .WithTenantId(Tenant)
          .WithClientId(ClientId)
          .Build();
  }
  </code></pre>
  <p>in the window I'm getting a token:</p>
  <pre><code>authResult = await app.AcquireTokenInteractive(scopes)
                      .WithAccount(accounts.FirstOrDefault())
                      .WithPrompt(Prompt.SelectAccount)
                      .ExecuteAsync();
  </code></pre>
  <p>I receive a token, but when making a request I get the error:</p>
  <pre><code>{&quot;code&quot;:401,&quot;message&quot;:&quot;IDX10214: Audience validation failed. Audiences: '[PII is hidden]'. Did not match: validationParameters.ValidAudience: '[PII is hidden]' or validationParameters.ValidAudiences: '[PII is hidden]'.&quot;}
  </code></pre>
  <p>What am I missing?</p>