dotnet-blazor-auth

Implement authentication and authorization in Blazor apps across hosting models.

10|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/AGIBuild/Agibuild.Fulora --skill dotnet-blazor-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-blazor-auth
Source: https://github.com/AGIBuild/Agibuild.Fulora/tree/main/.cursor/skills/dotnet-blazor-auth
Command: npx skills add https://github.com/AGIBuild/Agibuild.Fulora --skill dotnet-blazor-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexities of implementing secure authentication and authorization within Blazor applications across various hosting models.

Core Features & Use Cases

  • Authentication Flows: Handles cookie-based and token-based authentication for Blazor Server, WebAssembly, Auto, and Hybrid apps.
  • Authorization: Implements role-based and policy-based access control using AuthorizeView and IAuthorizationService.
  • Identity Management: Integrates with ASP.NET Core Identity for user management and scaffolding.
  • External Providers: Supports integration with OAuth/OIDC providers like Google and Microsoft.
  • Use Case: Securely manage user logins, restrict access to admin-only sections, and allow users to sign in with their Google accounts in a Blazor WebAssembly application.

Quick Start

Implement authentication and authorization in your Blazor application by following the setup instructions for your chosen hosting model.

Frequently Asked Questions about dotnet-blazor-auth

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

FAQPage Schema
How do I implement authentication and authorization in Blazor WebAssembly?

Blazor authentication and authorization are implemented using AuthorizeView, CascadingAuthenticationState, and token-based auth flows tailored for Blazor WebAssembly hosting models. You can restrict access to specific UI components and manage user logins securely.

Does Blazor authentication work the same across Server, WebAssembly, Auto, and Hybrid hosting models?

Blazor authentication differs across hosting models, utilizing cookie-based auth for Blazor Server and token-based auth for Blazor WebAssembly. The implementation adapts AuthorizeView and CascadingAuthenticationState patterns to fit each model's specific auth flow.

How do I restrict access to admin-only sections in Blazor using role-based authorization?

Role-based authorization in Blazor uses AuthorizeView and IAuthorizationService to restrict access to admin-only sections. You can implement role and policy-based access control to secure specific UI components and application routes.

Can I integrate external OAuth and OIDC providers like Google with ASP.NET Core Identity in Blazor?

External OAuth and OIDC providers like Google and Microsoft integrate with Blazor through ASP.NET Core Identity. This allows users to sign in with their external accounts while maintaining robust identity management and secure authentication flows.

What is the best way to scaffold ASP.NET Core Identity UI in a Blazor application?

Scaffolding ASP.NET Core Identity UI in Blazor involves integrating user management capabilities and pre-built UI components. This provides a foundational setup for handling user logins, identity management, and secure authentication within your application.