Getting Started

Installation

Add this nuget package to your Server project:

dotnet add package BitzArt.Blazor.Auth.Server

Add this nuget package to your Client project:

dotnet add package BitzArt.Blazor.Auth.Client

Configuration

Call this method in both your Server Program.cs and Client Program.cs:

builder.AddBlazorAuth();

Usage

You can now use Blazor authorization capabilities (such as @attribute [Authorize], AuthorizeView, AuthorizeRouteView) as you normally would.

What's next?

Refer to the Authentication section to learn how to customize your authentication logic.