Blog

Posts tagged “Authentication”

Header: 'Your auth check passed. Now prove what the agent did.' beside an illustrative request log of one agent run, including a duplicate refund and a denied DELETE.
Security

Your auth check passed. Now prove what the agent did.

An agent calls your API with a valid token, the scopes allow it, and the write lands with a clean 201. Nobody asked for it. Here's how to fix authorization for agents first, then build an audit trail that shows exactly what the agent did.

Jason Fill November 12, 2026 7 min read
Illustrative request log for user u_118: POST /orders 201, the payment step skipped, then POST /orders/8812/confirm 200, flagged reason=step_skipped missing=payment. Headline: Every request got a 200. Nobody paid.
Security

API business logic abuse: requests that are valid but wrong

Akamai says 61% of API attacks in 2025 involved unauthorized workflows, double the year before. Four examples for a small SaaS, how to map the expected order of calls, and Express code to catch the ones that skip a step.

Jason Fill November 9, 2026 5 min read
401 vs 403 in your API logs: illustrative log lines showing a burst of 401s on POST /login from one IP ending in a 200, then 403s on sequential invoice IDs
Debugging

401 vs 403 in your Node API logs: what each pattern means

401 and 403 look alike in a log but answer different questions. What each means under RFC 9110, four auth patterns worth an alert, how to return the right one in Express and Fastify, and five searches to run on last week's logs.

Jason Fill November 8, 2026 4 min read
Before and after: a Node.js login that answered 401 'Wrong password' or 404 'No account' with different timings now answers 401 'Invalid email or password' in about 33 ms for both real and unknown emails.
Security

Stop user enumeration on your Node.js login, signup and reset endpoints

AI agents made hundreds of millions of requests to login pages in the first half of 2026. If your API answers differently for real and unknown emails, it hands them a target list. Here's how to make login, reset and signup give one answer.

Jason Fill November 5, 2026 6 min read
Header: 'Your MCP server is an API. Debug it like one.' beside an illustrative log of MCP calls returning 200, 404 (session not found), 401 (token expired) and 499 (client gave up).
Debugging

Your MCP server is an API. Debug it like one.

A remote MCP server works on localhost, then fails in production with a vague "tool call failed." Lost sessions behind a load balancer, expiring OAuth tokens and proxies that cut streams off are all visible at the HTTP layer. Here's where to look.

Jason Fill August 12, 2026 8 min read
API key security, from format to rotation. Cover graphic for a guide to generating, hashing, scoping and rotating API keys in Node.js.
Security

API key security for Node APIs: prefixes, hashing, scopes and rotation

A customer just pushed their API key to a public repo. Can you tell if anyone used it, and could a database leak expose every key? Design API key security in Node properly: prefixes, hashing, scopes and rotation.

Jason Fill July 27, 2026 6 min read
Credential stuffing detection in your logs. Cover graphic for a guide to detecting credential stuffing on Node API login routes.
Security

Credential stuffing detection for Node APIs: spotting it in your login logs

Every request looks like a normal login, which is why stuffing goes unseen until a customer reports a login they did not make. Here is how to see it in your logs.

Jason Fill February 26, 2026 6 min read