Skip to content

Latest commit

 

History

History
75 lines (66 loc) · 2.14 KB

wordpress.md

File metadata and controls

75 lines (66 loc) · 2.14 KB

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

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 mxisd URL will need to be appended with /index.php

mxisd

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_.