dotnet-security

Implement JWT and cookie-based authentication for .NET 9 apps.

Updated Nov 30, 2025
One-click install
npx skills add https://github.com/gabrielsan90/FacturacionV2 --skill dotnet-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-security
Source: https://github.com/gabrielsan90/FacturacionV2/tree/main/.claude/skills/dotnet-security
Command: npx skills add https://github.com/gabrielsan90/FacturacionV2 --skill dotnet-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure JWT authentication for Backend APIs and Cookie authentication for Frontend applications, enabling secure, scalable access control.

Core Features & Use Cases

  • JWT-based authentication for API endpoints with token generation and validation.
  • Cookie-based authentication for web UI with session management and role-based authorization.
  • Use Case: Integrate login, signup, and protected routes across API and UI in a .NET 9 stack with Identity.

Quick Start

Configure and run a secure login flow by wiring JWT authentication for the Backend and cookie-based authentication for the Frontend in a .NET 9 project.

Frequently Asked Questions about dotnet-security

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

FAQPage Schema
How do I configure JWT authentication for a .NET 9 Backend API?

JWT authentication for a .NET 9 Backend API is configured by implementing token generation and validation workflows, enabling secure access control for your API endpoints.

What is the best way to set up cookie-based auth for a .NET web frontend?

Cookie-based auth for a .NET web frontend is set up by configuring session management and role-based authorization, securing web UI routes effectively.

Can I use ASP.NET Core Identity with JWT and cookie auth in the same project?

Yes, you can integrate ASP.NET Core Identity with JWT and cookie auth in the same project, applying role-based access control and login workflows across API and web UI.

How do I implement role-based authorization in a .NET 9 application?

Role-based authorization in a .NET 9 application is implemented by wiring JWT validation for the Backend and cookie configuration for the Frontend, managing user roles across the stack.

Does this approach support both API token services and web UI session management?

Yes, this approach supports API token services and web UI session management by applying token service patterns for JWT and cookie configuration for frontend sessions.

Why use separate JWT and cookie authentication for backend and frontend .NET apps?

Separate JWT and cookie authentication for backend and frontend .NET apps enables scalable access control, applying JWT validation for APIs and session management for web UI.