Security & Authorization
Guides for implementing authentication, authorization, and security features in LightNap.
Available Guides
Rate Limiting
Configure and understand rate limiting to protect your API from abuse and ensure fair usage.
CAPTCHA Verification
Protect public-write endpoints from bots. Pick from NoOp (dev), Cloudflare Turnstile, Google reCAPTCHA v2, or reCAPTCHA v3 via configuration and opt endpoints in with the [ValidateCaptcha] filter.
Working With Roles
Add and manage application roles for authorization. Learn how to define roles, apply them to endpoints, and use them in the frontend.
Working With Custom Claims
Implement fine-grained permissions using ASP.NET claims. This guide covers claim-based authorization for dynamic, record-level security.