Build Status

Disciple.Tools Mobile App Plugin

The Disciple.Tools Mobile App extends the Disciple.Tools system to support mobile app integration.

Team

Dependent Repo

Setup

This plugin is bundled with the JWT plugin.

If you get errors like "Only authenticated users can access the REST API" from the app then you may need to update your .htacces Debugging: make a POST request to/wp-json/jwt-auth/v1/token (with username and password post fields) to get the token.

POST /wp-json/jwt-auth/v1/token/validate with the token in the Authorization hearder as Bearer {token}. If you get this error: "Authorization header not found" then you need to update your .htaccss with:

RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

Or with:

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

Known Issues

We have observed conflicts when certain other plugins are installed which prevent the D.T Mobile App plugin from operating as expected. The following plugins and hosts have been observed to have issues:

  • JetPack multiple versions on multiple hosting providers and even self-hosted
  • Creative Mail by Constant Contact v1.2.1 on Bluehost

There will also be a conflict if you're also using another JWT Token provider plugin like: https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/

Basic Design Idea

Basic Design Idea