Skip to content

Topic · 19 articles

Security

Authentication, authorization, and safe-by-default APIs.

Security is not a feature you add at the end; it is decisions made throughout the stack. This hub covers authentication and session handling, authorization and tenant isolation done server-side, validating untrusted input, and the common API vulnerabilities worth designing against.

It overlaps closely with the NestJS and Node.js hubs, where most of these controls actually get implemented.

Subscribe to Security via RSS

All Security articles

Row-Level Security for Multi-Tenant SaaS in PostgreSQL — Aman Kumar Singh
Security Best Practices — Aman Kumar Singh
Rate Limiting and Throttling — Aman Kumar Singh
Authentication with Passport and JWT — Aman Kumar Singh
Guards and Authorization — Aman Kumar Singh
Protecting Routes with Middleware — Aman Kumar Singh
Authentication in Next.js — Aman Kumar Singh
A Production Security Checklist — Aman Kumar Singh
Audit Logs You Can Trust — Aman Kumar Singh
Handling File Uploads Securely — Aman Kumar Singh
Securing Your SaaS API — Aman Kumar Singh
Organization and Multi-Tenant Authentication — Aman Kumar Singh
Session Management and Token Storage — Aman Kumar Singh
Multi-Factor Authentication (MFA) — Aman Kumar Singh
Adding OAuth and Social Login — Aman Kumar Singh
Role-Based Access Control (RBAC) in a SaaS — Aman Kumar Singh
Refresh Tokens Done Right — Aman Kumar Singh
JWT Authentication in NestJS — Aman Kumar Singh
Managing Environment Variables and Secrets — Aman Kumar Singh

Frequently asked questions

What application security topics are covered here?

Authentication and session handling, authorization and tenant isolation enforced server-side, validating untrusted input, and the common API vulnerabilities worth designing against from the start.

Is authentication the same as authorization?

No. Authentication proves who a user is; authorization decides what that user is allowed to do. Conflating the two is a common source of access-control bugs, and the articles keep the concerns separate.