WordPress, Meet Passport

Kelly Strain

wordpress and passport

Passport now has a WordPress plugin to make login & registration even easier.

We recently published the first version of the WordPress plugin for Passport which allows users to login by authenticating via OAuth 2.0.

Passport is a user database that allows you to easily create, register and manage users. In addition to managing WordPress user accounts, Passport can manage user registration and login for your forums, chat, games, internal users or whatever else you can dream up.

How to Install

If you havent already, sign up for your free Passport developers license here: https://www.inversoft.com/try-passport

Download the Passport plugin here and follow these steps to get started.

In Passport

  1. Add a new API key by navigating to Settings → API Keys. Leaving the default permissions will give this API key access to all of the Passport APIs. You may also choose to limit the permissions. The following permissions are required.
    • [GET] /api/user
    • [POST] /api/user/registration (Only required if you enable automatic registration)
  2. Create an application named WordPress or another name of your choosing, click on the OAuth tab and provide Passport the authorized URLs, request origins and logout URL for your WordPress site.
  3. Click Manage Roles from the available row actions for the application you just created and add the following WordPress roles:
    • Administrator
    • Author
    • Contributor
    • Editor
    • Subscriber
  4. Make note of the API key, Client ID and Client Secret, these will be needed in the WordPress configuration steps.

In WordPress

  1. To manually install, follow one of the two following options:
    • Unzip the plugin into wp-content/plugins in your WordPress installation
    • Log into your WordPress site, navigate to PluginsAdd NewUpload Plugin and select the passport-wordpress-plugin.zip
  2. Once installed, Activate the plugin.
  3. Verify your settings and configuration.
    • Ensure Passport Backend and Passport Frontend are running.
    • Verify each item from step 4 above is provided and correct.
    • Test a login from another browser before logging out of your current session.

If you’ve performed all of your validation and you’re unable to login due to a mistake in the configuration, navigate to your plugin directory and either delete or rename the Passport plugin and start again.

Example Settings

  • Passport Backend URI:
  • Passport Frontend URI:
  • Client ID: e6430720-d546-4491-a80f-567a833530af
  • Client Secret: f90d331d-a148-49db-9490-f047556c7215
  • API Key: d9d732fc-92cc-46c1-9008-80cce0cc8b27

Help Me, Help You

Let us know if you hit any snags. Bug reports are welcome for Passport on Github.

We are actively working on additional plugins for various 3rd party tools. Which plugins would you like to see added first?

Happy developing!

Comments are closed.