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.
- 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.
[POST] /api/user/registration(Only required if you enable automatic registration)
- Create an application named WordPress or another name of your choosing, click on the
OAuthtab and provide Passport the authorized URLs, request origins and logout URL for your WordPress site.
Manage Rolesfrom the available row actions for the application you just created and add the following WordPress roles:
- Make note of the API key, Client ID and Client Secret, these will be needed in the WordPress configuration steps.
- 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
Upload Pluginand select the
- Once installed, Activate the plugin.
- 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.
- Passport Backend URI: http://127.0.0.1:9011
- Passport Frontend URI: http://127.0.0.1:9031
- Client ID:
- Client Secret:
- API Key:
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?