WordPress Integration

❗️

NOTE

This feature is being deprecated. Please refer to https://documentation.viafoura.com/docs/authentication for up to date methods of authentication.

Viafoura can integrate with your existing WordPress users and login system.

  1. Download the Viafoura WordPress OAuth plugin.
  2. Install this plugin into your WordPress.
  3. Go to the newly installed OAuth plugin in your WordPress (The left navigation will have a link called OAuth Provider) and copy the site OAuth consumer key and secret.
  4. As an admin, login to admin.viafoura.com. Go to settings > Authentication Providers > OAuth 1.0a and check the check box that says "enable your sites OAuth login."
  5. Fill out the text box fields with your sites OAuth values (example values are provided) and hit save.

🚧

Note

Some web hosts enable mod_security2 for Apache by default, this is known to cause issues with the Viafoura OAuth1a plugin. Either disable it altogether, add "api.viafoura.co" to your whitelist, or add the following to your root .htaccess file:

<IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterInheritance Off
</IfModule>

🚧

Note

Some web hosts will filter out certain HTTP headers which are required for OAuth. If you see the error "Invalid consumer key", this may be the cause. A workaround is to force Apache to forward the appropriate header for you by adding the following to your .htaccess file, or httpd.conf:

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>

Did this page help you?