
內容簡介
JSON API Auth 外掛擴展了 JSON API 插件,提供 RESTful 用戶身份驗證功能,適用於依賴舊版 JSON API 的現有網站。此外掛可生成和驗證身份驗證 Cookie,並獲取當前用戶資訊。
【主要功能】
• 生成用戶身份驗證 Cookie
• 驗證身份驗證 Cookie
• 獲取當前用戶資訊
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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. For a new mobile app, headless site, external service, or AI-assisted integration, install RESTful JSON API instead.
RESTful JSON API provides plugin-issued JWT bearer authentication, requires HTTPS by default for requests that handle passwords or tokens, and includes a broader set of endpoints organized into Core, Posts, User, Respond, and Widgets controllers. Its User controller includes signup, JWT login, token validation, profiles, avatars, password-reset requests, safe user meta, and authenticated comments, while the other controllers expose content, custom post type, taxonomy, media, menu, search, comment, and widget workflows.
Existing JSON API Auth integrations can continue using this plugin. Because JWT bearer tokens replace the legacy cookie format and endpoint paths differ, test your client migration before deactivating the legacy JSON API stack.
JSON API Auth extends the JSON API Plugin to allow RESTful user authentication.
JSON API Plugin, that is required, was closed on August 7, 2019 from WordPress repository. You can download JSON API Plugin from https://github.com/PI-Media/json-api until it is republished and available on WordPress.
Features include:
Generate Auth Cookie for user authentication
Validate Auth Cookie
Get Current User Info
For documentation: See ‘Other Notes’ tab above for usage examples.
Credits: http://www.parorrey.com/solutions/json-api-auth/
