/OAuth1

OAuth server implementation for WP API

Primary LanguagePHP

OAuth 1.0a Server for WordPress

This project is an OAuth 1.0a-compatible authentication method for WordPress. This is a separate-but-related project to [WP API][], designed to provide authentication suitable for the API.

Documentation

Read the plugin's documentation.

Quick Setup

Want to test out the OAuth API and work on it? Here's how you can set up your own testing environment in a few easy steps:

  1. Install Vagrant and VirtualBox.

  2. Clone Chassis:

    git clone --recursive git@github.com:Chassis/Chassis.git api-tester
    vagrant plugin install vagrant-hostsupdater
  3. Grab a copy of WP API and OAuth API:

    cd api-tester
    mkdir -p content/plugins content/themes
    cp -r wp/wp-content/themes/* content/themes
    git clone git@github.com:WP-API/WP-API.git content/plugins/json-rest-api
    git clone git@github.com:WP-API/OAuth1.git content/plugins/oauth-server
  4. Start the virtual machine:

    vagrant up
  5. Browse to http://vagrant.local/wp/wp-admin/ and activate the WP API and OAuth API plugins

    Username: admin
    Password: password
    
  6. Refer to the documentation on how to connect an OAuth client.