Meteor login service for self-hosted WordPress accounts
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Meteor Login Service for self-hosted WordPress accounts

This package is for authenticating with self-hosted wordpress sites using the commercial WP OAuth Server plugin from It is not for authenticating using

Setting up

  1. Go to your self hosted wordpress page. Log in to the admin panel, then install and activate the "WP OAuth Server" plugin (license required).

  2. Make sure Grant Type 'Authorization Code' is supported under Settings / Oauth Server / Advanced Configuration

  3. Make sure WordPress Permalinks are NOT default. Anything other than the "/?p=123" option works.

  4. Add a new client under under Settings / OAuth Server / Clients.

  5. Enter as the redirect URI.

  6. Note the Client ID and Secret. Enter these in the config popup when you first run your meteor app. Alternately you can configure this programatically by running this code on the server:

		service: 'wordpress'
		service: 'wordpress',
		clientId: 'CLIENT_ID',
		secret: 'SECRET',
		authServerURL: 'AUTH_SERVER'
  1. Make sure your server supports SSL. Without a valid SSL certificate your authentication will fail. You can disable this check (e.g. in development) by adding the following to Meteor.settings:

    { wp_oauth_accept_invalid_certs : true}

Debugging Locally

You may run into trouble with a local WordPress server (e.g. unusuable client config box).

The OAuth server needs a public URL for redirection. You can use a service like to expose your localhost. You'll need to set the ROOT_URL="" environment variable. You may also need to access your localhost site via this ngrok domain rather than localhost.


  • Support OAuth2 via's OAuth Server Plugin
  • Support WP API
  • Support OAuth1 via WP API v1 or v2