Most shared hosting providers have disabled the HTTP Authorization Header by default.To enable this option you’ll need to edit your .htaccess file by adding the following:
CoCart JWT Authentication implements a secure OAuth 2.0 compliant authentication flow. Here’s how the authentication process works in your WordPress application:
1
Authentication Request
Client authenticates the login endpoint via Authorization header using the basic method to obtain JWT tokens.
2
Token Usage
Use the JWT token to authenticate any REST API requests via Authorization header using bearer method.
3
Token Refresh
Use refresh token to obtain new access tokens without re-authentication via the refresh-token endpoint.
4
Validate Token
Validate the token in the background of your application from time to time to check the users authentication session is still valid.
CoCart JWT Authentication comes with built-in security features to protect your WordPress application. Here are the key security measures you should be aware of:
Automatic token revocation on password/email changes.