managing-blazor-server-authentication

Configure ASP.NET Core Identity authentication in Blazor Server applications.

19|2|Updated May 13, 2026
One-click install
npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill managing-blazor-server-authentication
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: managing-blazor-server-authentication
Source: https://github.com/microsoft/upgrade-agent-plugins/tree/main/plugins/upgrade-agent/extenders/upgrade-dotnet/upgrade/skills/lazy/web/webforms/managing-blazor-server-authentication
Command: npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill managing-blazor-server-authentication

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Microsoft.AspNetCore.Identity.EntityFrameworkCore, Microsoft.AspNetCore.Authentication, Microsoft.AspNetCore.Mvc, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Manages and troubleshoots authentication in Blazor Server applications, addressing common issues like HttpContext NULL errors, cookie auth failures, and login/logout issues.

Core Features & Use Cases

  • Authentication Management: Configures cascading authentication state and minimal API endpoints for login/logout/register.
  • Error Troubleshooting: Identifies and resolves issues such as HttpContext NULL errors during WebSocket circuits, silent failures in component handlers, and nullSignInManager.
  • UI Patterns: Covers Blazor auth UI patterns for WebForms migration, including AuthorizeView and HTML form login.
  • Middleware Migration: Assists in migrating OWIN to ASP.NET Core middleware for authentication.

Quick Start

Use the managing-blazor-server-authentication skill to configure authentication for your Blazor Server application.

Frequently Asked Questions about managing-blazor-server-authentication

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why is HttpContext NULL during Blazor Server authentication over WebSocket circuits?

Blazor Server authentication UI patterns for WebForms migration utilize HTML form logins and AuthorizeView components to manage user access. This Skill configures these patterns to transition legacy WebForms authentication structures to ASP.NET Core Identity.

How do I configure ASP.NET Core Identity cookie auth in Blazor Server?

You configure ASP.NET Core Identity cookie auth by setting up cascading authentication state and minimal API endpoints for login/logout/register. This Skill handles the configuration and resolves silent cookie auth failures in component handlers.

What is the best way to migrate OWIN authentication middleware to ASP.NET Core for Blazor?

Migrating OWIN authentication middleware to ASP.NET Core involves transitioning to the standard ASP.NET Core middleware pipeline for authentication. This Skill assists in migrating OWIN to ASP.NET Core middleware to configure Blazor Server authentication correctly.

How do I handle nullSignInManager errors when setting up Blazor Server authentication?

Handling nullSignInManager errors requires correctly wiring ASP.NET Core Identity dependencies within your Blazor Server application. This Skill identifies and resolves nullSignInManager issues alongside HttpContext NULL errors during WebSocket circuits.

Can I use AuthorizeView components for WebForms migration to Blazor Server?

You can use AuthorizeView components for WebForms migration to Blazor Server to implement authentication UI patterns. This Skill provides Blazor auth UI patterns including AuthorizeView and HTML form login to streamline the migration process.