dotnet-api-security

Implement authentication, authorization, and threat mitigation for ASP.NET Core Web APIs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and implementation patterns for securing ASP.NET Core APIs, covering authentication, authorization, and essential security headers.

Core Features & Use Cases

  • Authentication: Implement ASP.NET Core Identity, OAuth/OIDC, and JWT bearer token authentication.
  • Authorization: Configure role-based and policy-based authorization.
  • Security Headers: Set up CORS policies, Content Security Policy (CSP), and other security headers.
  • Rate Limiting: Protect APIs from abuse with built-in rate limiting middleware.
  • Passkeys: Integrate modern passwordless authentication using WebAuthn.
  • Use Case: Secure a public API endpoint that requires users to log in with a username and password, ensuring only authenticated and authorized users can access sensitive data, while also preventing brute-force attacks through rate limiting.

Quick Start

Configure ASP.NET Core Identity with API endpoints for user registration and login.

Frequently Asked Questions about dotnet-api-security

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

FAQPage Schema
How do I implement JWT bearer token authentication in an ASP.NET Core Web API?

JWT bearer token authentication in ASP.NET Core is implemented by configuring authentication middleware to validate token signatures and claims. This Skill provides implementation patterns for securing API endpoints using JWT alongside OAuth/OIDC.

How do I configure rate limiting to protect ASP.NET Core APIs from brute-force attacks?

Rate limiting in ASP.NET Core APIs is configured using built-in middleware to restrict request frequency and prevent abuse. This Skill guides setting up rate limiting to block brute-force attacks on sensitive endpoints.

What's the best way to set up role-based and policy-based authorization in ASP.NET Core?

Role-based and policy-based authorization in ASP.NET Core are configured by defining policies and assigning roles to restrict access to API resources. This Skill covers establishing authorization policies to ensure only authorized users access sensitive data.

Can I integrate passkeys and passwordless authentication using WebAuthn in ASP.NET Core?

Passkeys and passwordless authentication are integrated in ASP.NET Core using WebAuthn standards. This Skill provides guidance on implementing modern passwordless authentication flows for secure API access.

How do I configure CORS policies and Content Security Policy headers for a secure API?

CORS policies and Content Security Policy (CSP) headers are configured in ASP.NET Core to control cross-origin access and mitigate injection threats. This Skill covers setting up essential security headers for secure API development.

Does ASP.NET Core Identity work with API endpoints for user registration and login?

ASP.NET Core Identity works with API endpoints to manage user registration and login flows. This Skill demonstrates configuring Identity to authenticate users accessing sensitive API data.