
內容簡介
- CoCart的免費附加元件可讓您透過簡單的JWT Token進行身份驗證。- 啟用PHP HTTP授權標頭- 大多數共享主機默認已禁用HTTP授權標頭。- 要啟用此選項,您需要通過添加以下內容來編輯.htaccess文件:- 然後將唯一密鑰設置在wp-config.php文件中,定義為COCART_JWT_AUTH_SECRET_KEY。- 默認情況下,令牌在兩天后過期,但可以使用此鉤子cocart_jwt_auth_expire過濾器更改以滿足您的需求。- 驗證基本方法以獲取令牌。- 在應用程序中使用jwt_token存儲所給定的令牌。- 使用Bearer驗證通過任何購物車路線進行身份驗證。- 有許多工具和庫可進一步增強您的購物車。
外掛標籤
開發者團隊
原文外掛簡介
This free add-on for CoCart allows you to authenticate the Cart API via JSON Web Tokens as an authentication method.
JSON Web Tokens are an open standard RFC 7519 for securely transmitting information between parties.
Read the core concept for more information on what this plugin does and can do.
★★★★★
An excellent plugin, which makes building a headless WooCommerce experience a breeze. Easy to use, nearly zero setup time. Harald Schneider
Key Features
Standard JWT Authentication: Implements the industry-standard RFC 7519 for secure claims representation.
Simple Endpoints: Offers clear endpoints for generating and validating tokens.
Configurable Secret Key: Define your unique secret key via wp-config.php for secure token signing.
Multiple signing algorithms: HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512, PS256, PS384, PS512
Rate Limiting: Controlled specifically for refreshing and validating tokens. Requires CoCart Plus
Helpful Debugging: Detailed logs of authentication issues to help figure out exactly what happened and fix it faster.
WP-CLI Commands: Useful commands to handle tokens – whether you need to check, destroy or create new ones, or clean up old ones.
Developer Hooks: Provides filters and hooks for more configuration to your requirements.
For support, please join the community on Discord. For priority support, consider upgrading to CoCart Plus.
📄 Documentation
See documentation on how to get setup, filters and hooks with examples to help configure JWT Authentication to your needs.
Once ready to use, see the quick start guide. There is also an advanced configuration for using RSA Keys.
★★★★★
Amazing Plugin. I’m using it to create a react-native app with WooCommerce as back-end. This plugin is a life-saver! Daniel Loureiro
👍 Add-ons to further enhance CoCart
We also have other add-ons that extend CoCart to enhance your headless store development.
CoCart – CORS enables support for CORS to allow CoCart to work across multiple domains.
CoCart – Rate Limiting enables the rate limiting feature.
and more add-ons in development.
These add-ons of course come with support too.
For additional security, consider our API Security plugin that provides a firewall to block unknown outsiders, rate limit requests and protect data exposure – no configuration required.
⌨️ Join our growing community
A Discord community for developers, WordPress agencies and shop owners building the fastest and best headless WooCommerce stores with CoCart.
Join our community
🐞 Bug reports
Bug reports for CoCart – JWT Authentication are welcomed in the CoCart – JWT Authentication repository on GitHub. Please note that GitHub is not a support forum, and that issues that aren’t properly qualified as bugs will be closed.
More information
The official CoCart API plugin website.
CoCart for Developers, an official hub for resources you need to be productive with CoCart and keep track of everything that is happening with the API.
The CoCart Documentation
Subscribe to updates
Like, Follow and Star on Facebook, Twitter, Instagram and GitHub
💯 Credits
This plugin is developed and maintained by Sébastien Dumont.
Founder of CoCart Headless, LLC.
