JSON API Auth source code
By Ali Qureshi, on WordPress.org since 2013. 600+ active installs.
Important: use RESTful JSON API for new integrations JSON API Auth is retained for existing sites that still depend on the original JSON API plugin and its cookie-authentication workflow. Below is its source code for every one of its 33 releases, what changed in the latest one, and how often it ships.
What changed in 3.1.3
Released Nov 19, 2026, 2 months after 3.1.2- Security: Mark every Auth controller response non-cacheable at the application and HTTP layers.
- Security: Require POST for cookie generation, validation, and current-user authentication methods.
- Security: Require JSON API 2.3.1 or later and purge legacy JSON API response transients during the upgrade.
- Security: Accept credentials and authentication cookies only in the POST body, not in URL parameters.
- Security: Remove the public insecure=cool HTTPS bypass. Local HTTP testing now requires the explicit JSON_API_AUTH_ALLOW_INSECURE constant.
- Improved HTTPS detection for trusted reverse-proxy requests using X-Forwarded-Proto.
4 files changed since 3.1.2: 4 modified, 0 added, 0 removed.
- changelog.txt modified, +439 bytes
- controllers/Auth.php modified, +939 bytes
- json-api-auth.php modified, +2,316 bytes
- readme.txt modified, +777 bytes
Release history
33 releases since December 2013- 3.1.3 Nov 19, 2026 Security: Mark every Auth controller response non-cacheable at the application and HTTP layers.
- 3.1.2 Sep 7, 2026 Tested and confirmed compatible with WordPress 7.1.
- 3.1.1 Jul 17, 2026 Added a migration notice recommending the newer RESTful JSON API plugin for new projects.
- 3.1.0 Jun 18, 2026 Tested and confirmed working with WordPress 7.0
- 3.0.0 Jul 29, 2025 Updated for WordPress version 6.8