dotnet-api-security — Claude Code skill for ASP.NET Core auth and API security
dotnet-api-security is a Claude Code skill that handles authentication and authorization in ASP.NET Core APIs.
no license 169 installs ★ 92 updated 2026-02-27
npx skills add wshaddix/dotnet-skills --skill dotnet-api-security -a claude-codeWhat dotnet-api-security does
The skill takes ownership of the API security layer in ASP.NET Core: Identity setup with password rules and account lockout, external provider integration via OAuth 2.0/OIDC (Entra ID, Auth0, Okta, Keycloak), JWT bearer validation with policy-based authorization, Content Security Policy headers, and CORS configuration.
Passkey support through WebAuthn is also covered — the skill knows the full .NET 10 flow from generating a PublicKeyCredentialCreationOptions challenge to verifying the assertion server-side. Fallback authorization policies via AddAuthorizationBuilder are part of the same scope.
The boundaries are explicit: OWASP Top 10 mitigations belong to dotnet-security-owasp, secrets management to dotnet-secrets-management, and Blazor auth components (AuthorizeView, CascadingAuthenticationState) to a separate skill. If you combine multiple skills from wshaddix/dotnet-skills in one project, knowing these lines prevents overlap.
What it helps with
- Configure JWT bearer authentication with custom authorization policies
- Wire up OAuth 2.0/OIDC against Entra ID, Auth0, or Keycloak
- Add passwordless passkey (WebAuthn) login in a .NET 10 project
- Set up ASP.NET Core Identity with lockout and two-factor authentication
- Apply CORS policies and rate limiting to a public-facing API
Example prompts for the agent
- Add JWT bearer auth to the
/api/ordersendpoint and require thePremiumUserpolicy - Connect OIDC via Keycloak, save tokens, and pull claims from the userinfo endpoint
- Enable passkeys with
AddPasskeys()and walk through the registration flow for an SPA client
How to install dotnet-api-security
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-api-security -a claude-code2Manually: put the files in place
~/.claude/skills/dotnet-api-security/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/dotnet-api-security/
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-api-security -a codex2Manually: put the files in place
.agents/skills/dotnet-api-security/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-api-security -a cursor2Manually: put the files in place
.cursor/skills/dotnet-api-security/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install wshaddix/dotnet-skills skills/dotnet-api-security2Manually: put the files in place
.github/skills/dotnet-api-security/SKILL.md1Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-api-security -a gemini-cli2Platform CLI
gemini skills install https://github.com/wshaddix/dotnet-skills --path skills/dotnet-api-securityManually: put the files in place
.devin/skills/dotnet-api-security/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add wshaddix/dotnet-skills --skill dotnet-api-security -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about dotnet-api-security
How do I install dotnet-api-security in Claude Code?
Run npx skills add wshaddix/dotnet-skills --skill dotnet-api-security -a claude-code in your terminal. The skill file will be placed at ~/.claude/skills/dotnet-api-security/SKILL.md.
What does the dotnet-api-security skill do?
It teaches the agent to implement API-level authentication and authorization in ASP.NET Core, covering Identity, JWT bearer, OAuth 2.0/OIDC, WebAuthn passkeys, CORS, and rate limiting.
How does dotnet-api-security differ from dotnet-security-owasp?
dotnet-api-security owns authentication and authorization mechanisms for APIs. dotnet-security-owasp handles cross-cutting vulnerability mitigations from the OWASP Top 10 — they are separate skills in the same repository.