This Identity store allows you to use user accounts registered on your Wordpress setup.
Two types of connections are required for full support:
- REST API with JWT authentication
- Direct SQL access
Name | Supported |
---|---|
Authentication | Yes |
Directory | Yes |
Identity | Yes |
Profile | No |
- Wordpress >= 4.4
- Permalink structure set to
Post Name
- JWT Auth plugin for REST API
- SQL Credentials to the Wordpress Database
Set a JWT secret into wp-config.php
like so:
define('JWT_AUTH_SECRET_KEY', 'your-top-secret-key');
your-top-secret-key
should be set to a randomly generated value which is kept secret.
Wordpress is normally configured with rewrite of index.php
so it does not appear in URLs.
If this is not the case for your installation, the mxisd URL will need to be appended with /index.php
Enable in the configuration:
wordpress:
enabled: true
Configure the URL to your Wordpress installation - see above about added /index.php
:
wordpress:
rest:
base: 'http://localhost:8080'
Configure the SQL connection to your Wordpress database:
wordpress:
sql:
connection: '//127.0.0.1/wordpress?user=root&password=example'
By default, MySQL database is expected. If you use another database, use:
wordpress:
sql:
type: <string>
With possible values:
mysql
mariadb
postgresql
sqlite
To configure the tables prefix for default queries, in case a custom value was set during Wordpress install:
wordpress:
sql:
tablePrefix: <string>
By default, the value is set to wp_
.