.NET React Templates
Security

Security

Security in Next SaaS is layered across ASP.NET Core Identity, ServiceStack request validation, organization context, role/capability policy, entitlements, quotas, audit, and deployment checks.

Guides

AreaGuide
Login, confirmation, 2FA, invitations, and account lifecycleAuthentication and accounts
Organization and platform permissionsAuthorization and roles
Preventing cross-customer accessTenant isolation
API keys, scopes, quotas, and rate limitingAPI credentials and abuse controls
Signed provider events and safe replayStripe webhook security
Time-limited operator accessSupport access
Protected keys, logs, audit, export, and deletionData protection and privacy
Browser, request, upload, and response boundariesWeb and input security
Final threat-led release reviewProduction security review

Security invariants

  • The browser is never an authorization boundary.
  • Every customer-owned lookup is constrained by resolved organization context.
  • Organization roles and platform roles are separate.
  • Stripe and SMTP secrets never enter the frontend bundle.
  • Published plan state and local subscription projections drive access without live provider calls.
  • Raw credentials and customer content do not belong in logs or audit metadata.
  • Retried external and background work preserves its original idempotency boundary.
  • Production readiness checks are a baseline, not a complete security assessment.

Perform a product-specific threat model before launch. Authentication methods, data sensitivity, compliance obligations, integrations, and hosting architecture can materially change the required controls.

Support Access Four-Stage Lifecycle

Role and Authorization Boundaries