title: Blazor WebAssembly App with Individual User Accounts and Store user accounts in-app using gives no local user accounts
body: <p>Creating a new <code>Blazor WebAssembly App</code> with <code>Individual User Accounts</code> and <code>Store user accounts in-app</code> using <code>Visual Studio 2019 16.8.2</code> and <code>.NET 5.0</code> gives no local user accounts.</p>
  <p><a href="https://i.stack.imgur.com/WeiRJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WeiRJ.png" alt="enter image description here" /></a></p>
  <p>Starting the app it says:</p>
  <blockquote>
  <p>Before authentication will function correctly, you must configure your
  provider details in Program.cs</p>
  </blockquote>
  <p>Program.cs:</p>
  <pre><code>public class Program
  {
      public static async Task Main(string[] args)
      {
          var builder = WebAssemblyHostBuilder.CreateDefault(args);
          builder.RootComponents.Add&lt;App&gt;(&quot;#app&quot;);
  
          builder.Services.AddScoped(sp =&gt; new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
  
          builder.Services.AddOidcAuthentication(options =&gt;
          {
              // Configure your authentication provider options here.
              // For more information, see https://aka.ms/blazor-standalone-auth
              builder.Configuration.Bind(&quot;Local&quot;, options.ProviderOptions);
          });
  
          await builder.Build().RunAsync();
      }
  }
  </code></pre>
  <p>Clicking on Log in redirects to:</p>
  <p>https://localhost:44444/authentication/login-failed</p>
  <p>With the following message:</p>
  <blockquote>
  <p>There was an error trying to log you in: 'Invalid response
  Content-Type: text/html, from URL:
  https:login.microsoftonline.com/.well-known/openid-configuration'</p>
  </blockquote>
  <p><code>wwwroot</code> -&gt; <code>appsettings.json</code> looks like this:</p>
  <pre><code>{
    &quot;Local&quot;: {
      &quot;Authority&quot;: &quot;https://login.microsoftonline.com/&quot;,
      &quot;ClientId&quot;: &quot;33333333-3333-3333-33333333333333333&quot;
    }
  }
  </code></pre>
  <p><a href="https://aka.ms/blazor-standalone-auth" rel="nofollow noreferrer">https://aka.ms/blazor-standalone-auth</a> leads to <a href="https://docs.microsoft.com/en-gb/aspnet/core/blazor/security/webassembly/?view=aspnetcore-3.1" rel="nofollow noreferrer">https://docs.microsoft.com/en-gb/aspnet/core/blazor/security/webassembly/?view=aspnetcore-3.1</a></p>
  <p>Standalone Blazor WebAssembly apps seems to either require <code>Azure Active Directory (AAD)</code>, <code>Azure Active Directory B2C (AAD B2C)</code> or another <code>Identity Provider (IP)</code>.</p>
  <p>Creating another application with <code>Individual User Accounts</code> and <code>Store user accounts in-app</code> gives <code>ASP.NET Core Identity</code> identity users and their own database.</p>