| ... | ... | @@ -18,3 +18,10 @@ For more information about Wordpress REST API see the [official documentation](h |
|
|
|
### **Wordpress REST API Authentication dependecies**
|
|
|
|
|
|
|
|
To support api token based authentication on WordPress, this plugins has [JWT Authentication for WP REST API plugin](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/) as dependency. **JWT Authentication** must be installed along with the plugin. This plugin extens the WP REST API using JSON Web Tokens Authentication as an authentication method.
|
|
|
|
|
|
|
|
### **Environment variables**
|
|
|
|
|
|
|
|
The plugin supports enviroment variable usage as configuration. There are two env variables:
|
|
|
|
|
|
|
|
* `WPCT_OC_AUTH_SECRET`: A character string to sign the jwt tokens. Default value is '123456789'.
|
|
|
|
* `WPCT_OC_DEFAULT_LOCALE`: An [ISO 639-1](https://ca.wikipedia.org/wiki/ISO_639-1) locale code. Default value is 'ca'. |
|
|
\ No newline at end of file |