2.1 KiB
Wordpress Identity store
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
Features
Name | Supported |
---|---|
Authentication | Yes |
Directory | Yes |
Identity | Yes |
Profile | No |
Requirements
- Wordpress >= 4.4
- Permalink structure set to
Post Name
- JWT Auth plugin for REST API
- SQL Credentials to the Wordpress Database
Configuration
Wordpress
JWT Auth
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.
Rewrite of index.php
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 ma1sd URL will need to be appended with /index.php
ma1sd
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_
.