Skill / SKILL.md

Configure Auth

managedcode/dotnet-skills

Add authentication and authorization to a Blazor Web App, accounting for the app's render mode. USE WHEN the user needs [Authorize] on pages, AuthorizeView, role or policy-based access, login/logout Identity pages, or AuthenticationStateProvider. Also USE WHEN auth state is null after WebAssembly loads, SignInManager throws in an interactive component, NotAuthorized content never renders in static SSR, or HttpContext.User is null in an interactive component. DO NOT USE for general component authoring (see author-component), for prerendering concerns unrelated to auth (see support-prerendering), or for managing non-auth cascading state (see coordinate-components).
2 views 527 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Add authentication and authorization to a Blazor Web App, accounting for the app's render mode. USE WHEN the user needs [Authorize] on pages, AuthorizeView, role or policy-based access, login/logout Identity pages, or AuthenticationStateProvider. Also USE WHEN auth state is null after WebAssembly loads, SignInManager throws in an interactive component, NotAuthorized content never renders in static SSR, or HttpContext.User is null in an interactive component. DO NOT USE for general component authoring (see author-component), for prerendering concerns unrelated to auth (see support-prerendering), or for managing non-auth cascading state (see coordinate-components).

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/managedcode/dotnet-skills' skill-source

Use the complete skill-source/catalog/Frameworks/Official-DotNet-Blazor/skills/configure-auth directory with your client’s skill installer.

  • catalog/Frameworks/Official-DotNet-Blazor/skills/configure-auth

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory catalog/Frameworks/Official-DotNet-Blazor/skills/configure-auth

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
524f7ffdfec6d0ade12506ea720fd0410d91173d351dd79a1fa60b3e357e86ae
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills