Search⌘ K
AI Features

Add Support for Authentication

Explore how to integrate Auth0 authentication into a Blazor WebAssembly application by installing Microsoft’s authentication package, configuring OpenID Connect settings, and enabling client-side authentication services.

We’ll implement the actual integration of our Blazor WebAssembly application with Auth0.

Install the authentication package

As our first step, we install Microsoft’s authentication package for Blazor WebAssembly. We make the Client folder as our current folder and run the following command in a terminal window:

dotnet add package Microsoft.AspNetCore.Components.WebAssembly.Authentication

After a few seconds, ...