How to Install and Configure WordPress JWT Auth Plugin?

JWT Auth Plugin lets WordPress authenticate users from mobile apps.
Install the JWT Auth Plugin and activate it from your dashboard.

To configure the JWT Auth Plugin follow the steps below:
1) Edit the .htaccess file and add the following lines to it.
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) – [E=HTTP_AUTHORIZATION:%1]
You have to use the File Manager of WordPress to edit the .htaccess file.
If you are using the services of a website hosting provider e.g. Dream Host, then they have their own file manager to manage WordPress files, you can use their file manager to locate and edit .htaccess file.
Open the file Manager and it will list all your WordPress files. You should see a few folders, open the folder with name of your site, eg. (example.com).
You will see the .htaccess file in this folder e.g. (example.com). Open and edit the .htaccess file and add the above lines to it.
If you notice that “RewriteEngine On” line already exists then insert the lines below it, just below RewriteEngine On, it’s important that we follow the sequence.
Most of the shared hosting have disabled the HTTP Authorization Header by default and this enables it.
If you need any help on how to locate and use the File Manager, do get in touch with support team of your WordPress hosting provider.

2) Continue to edit the .htaccess file and add the follow line to it.
SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
Just add it below the 3 lines that you added in Step 1
This enables the WPENGINE.

After completion of Step 1 and 2 your .htaccess file should look somewhat like as shown below.
# BEGIN WordPress
# The directives (lines) between “BEGIN WordPress” and “END WordPress” are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.

RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) – [E=HTTP_AUTHORIZATION:%1]
SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

3) Edit the wp-config.php file and add Secret Key that is used to authenticate.
To add the secret key edit the wp-config.php file and add the following line.
define(‘JWT_AUTH_SECRET_KEY’, ‘your-top-secret-key’);

You can replace the string “your-top-secret-key” with a key from here -> https://api.wordpress.org/secret-key/1.1/salt/
After you edit the above files and add the above lines do save the file.
The wp-config.php file is in the same example.com folder where .htaccess file is.

After you have configured the JWT Auth Plugin as mentioned above and saved the files, you can sign in to WordPress with your credentials from Notewrap.

Continue Reading

Publish Posts to WordPress

Publish posts to your self hosted WordPress(.org) site right from Notewrap. Before you SignIn from Notewrap to WordPress, you’ve to download and install JWT Auth Plugin. Follow the instructions in the description of this plugin to configure the plugin.  A detail description is here -> How to Install and Configure WordPress JWT Auth Plugin? 

JWT Auth is an industry standard  RFC7519 authentication method recommended by WordPress to authenticate WordPress users via a mobile App.

Once you have installed and configured properly the JWT Auth Plugin, you can SignIn with your WordPress username, password and site details to your self hosted WordPress site and start posting notes as blogs directly from Notewrap app.

Continue Reading

How to Write a Blog?

Blog Writing Made Simple

Write A Blog

With Notewrap its really simple to write a blog, you write it like any other note and use Notewrap’s elegant text formatting feature to format the text, most of us who write a blog also include one or more images in the Blog, with the recently introduced link feature it’s even more simple to write a blog with images.

To include an image in a blog, first add the image to your website, most website creators like WordPress lets you add images to your website and shows all images in your media folder, you can then simply add that image link to your blog.

When you export a blog to markdown, the link gets converted to markdown image syntax by default so that the image is displayed on your blog, also on WordPress, you can install the Phoenix Media Rename plugin to rename images after you add them to media, to rename image simply go the image in the media folder, tap edit more details, it will show you a text box with the filename, give a simple and meaningful name to your image and then tap update to save the image with the new filename, giving nice meaningful names to your media will also improve your websites SEO.

Once you have exported blog to markdown from Notewrap, you can then use the import markdown tool of the website builder to import or convert markdown to html post, e.g. for WordPress you can install the WP Githuber MD plugin which allows you to paste the markdown text to the left of the window and gives you a preview of the blog on the right and once you are done you can hit the publish button to post the blog.

Continue Reading
Close Menu