WP OAuth Server – CE


This plugin is a full OAuth 2.0 authorization server/provider for WordPress.
The goal of WP OAuth Server is to provide an easy to use authorization method that 3rd party platforms can use to securely authorize users from your WordPress site.

NOTE: WP OAuth Server has moved the version 3.2.0 release to wp-oauth.com. WP OAuth Server 3.1.X will still be hosted here at
WordPress.org but will only contain the Auth Code grant type.


  • Works with WP REST API/ JSON API. Access protected endpoints via OAuth2
  • Create and Manage a client.
  • Built-In Resource Server. You can either extend the resource server or JSON API. You pick.
  • Automated Authorization for Single Sign On using WordPress as the provider.
  • Extendable

Supported Grant Types

  • Authentication Code

NOTE: WP OAuth Server Pro Supports all grant types including:

  • Auth Code
  • Client Credentials
  • User Credentials
  • Implicit Flow
  • OpenID Code
  • OpenID Implicit

You can purchase pro + by visiting https://wp-oauth.com/platform.

How to Use

Visit https://wp-oauth.com/support/documentation/ for detailed documentation on installing, configuring and using
WordPress OAuth Server.

Minimum Requirements

  • PHP 5.4 or greater (latest version recommended)
  • OpenSSL installed and enabled if you plan on using OpenID Connect

Other Information

  • NOTE: As of 3.0.0, there are no backward compatibility for any version older than 3.0.0
  • NOTE: Due to IIS’s inability play nice, WP OAuth Server may work but is not supported on Windows OS.


Support requests should be made by opening a support request at https://wp-oauth.com/account/submit-ticket/.


  1. Upload oauth-provider to the /wp-content/plugins/ directory or use the built in plugin install by WordPress
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Click ‘Settings’ and then ‘permalinks’. Then simply click ‘Save Changes’ to flush the rewrite rules so that OAuth2 Provider
  4. Your Ready to Rock


Installation Instructions
  1. Upload oauth-provider to the /wp-content/plugins/ directory or use the built in plugin install by WordPress
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Click ‘Settings’ and then ‘permalinks’. Then simply click ‘Save Changes’ to flush the rewrite rules so that OAuth2 Provider
  4. Your Ready to Rock
How do I add a APP/Client?

Click on Settings->OAuth Server. Click on the Clients tab and then Add New Client. Enter the client information and your are done.

Does WordPress OAuth Server Support SSO (Single Sign On)

Yes, WordPress OAuth Server does support Single Sign On for both Traditional OAuth2 Flow and OpenID Connect.

Is there support for this plugin? Can you help me?

You can visit our https://wp-oauth.com/account/submit-ticket/ to open up a support request directly with developers.

Can you set this up for me on my current website?
  • DRINKS COFFEE * Can I? “YES”. You are more than welcome to contact us with if you should ever need assistance.
How do I use WordPress OAuth Server?

You can visit https://wp-oauth.com/knowledge-base/. You will find in-depth documentation as well as examples of how to get started.


Instant support

You get support straight on their personal website via live chat. Probably feature that any wordpress plugin provider should have in order to effectively and instantly fix problems on it. And its monopolistic plugin, there is no other plugin which would provide this function. It surely helps you have your own api and integrate it into applications. Well 199 USD is a lot to be able to integrate your api securely into your mobile or desktop app. But if it buys off then its probably worth it.

Good plugin

It is a very good plugin. However, there are some things which can be improved , I am using this for my custom application. Good job

Poor documentation

Poor documentation for free version, link to setup doesn’t work and author clearly doesn’t care about this plugin as I tried to reach out several times with no response!!!!

It’s okay

Purchased pro version before header support was added for REST API so had no use for it, but since that time support has been added, and this review was updated to remove the 1 star

Read all 21 reviews

Contributors & Developers

“WP OAuth Server – CE” is open source software. The following people have contributed to this plugin.




  • NEW: Added better support options in admin
  • FIX: Notice Issue on new client creation
  • FIX: Broken links
  • TESTED with Latest WP


  • Tested on 4.7.2
  • Updated scopes storage in API
  • Added API endpoint information


  • Updated Readme
  • Tested with version 4.7-alpha-38677
  • Removed overhead


  • Tested on 4.6 with version update.
  • Added video.


  • Bug fix in openID sub return parameter.
  • Added notice about upgrading and continuation of WP OAuth Server in WordPress plugin repository.


  • Restructuring and clean up.
  • Refresh token controller now accepts parameters properly.
  • Rewrote rewrite functionality to fix issues regarding rewrites on ever load.


  • Removed ALTER query. There is no need and someone updating from older version will experience issues anyways. Step by step upgrading is required.
  • Fixed issues when updating and options key is missing. This caused header errors that have full error reporting on.


  • Updated generateAuthorizationCode() to use wp_generate_password()
  • Fixed bug with expires_in not retuning as integer


  • Updated OAuth2 Library and re-ported to WP.
  • Updated AuthorizationCode handler to manage id_token delivery.
  • Fixed invalid id_token issue.


  • Moved located of do_action(‘wo_before_authorize_method’); add added $_REQUEST parameter.
  • Rearranged OAuth Server menu for flexibility
  • Added $_REQUEST parameter to wo_before_api action
  • Add wo_failed_login action when login fails for OAuth2\Stoarge::checkPassword during user credentials grant type
  • Added wo_user_not_found action when user is not found when using user credentials

* Add http://php.net/manual/en/function.apache-get-version.php function check before running it.


  • Added action wo_endpoint_user_authenticated which runs before resource method but after access token authentication.


  • Changed default refresh token lifetime to 10 days
  • Permalinks now check before re-writing
  • Minor code refactoring
  • Added action wo_set_access_token that runs before creating an access token


  • Optimized activate hooks for better performance and consolidation of code.
  • Started minimization of the code to unneeded overhead,
  • Added removal of access tokens when a user resets password.
  • Fixed issue with refresh tokens not being returned when using refresh_token grant type
  • Added functionality to allow for public endpoints.


  • Added MySQL check during install
  • Fixed 404 bug for unset permalinks
  • Minor security improvements


  • Fixed 404 errors when adding/editing clients


  • Addressed security issues on older PHP versions as well as Windows OS.
  • Added checks to help ensure that the environment is supported before WP OAuth Server can be ran.
  • Add filter ‘wo_scopes’ to allow for extendability.


  • Fixed bug in refresh token that prevented use of refresh tokens


  • Forced all expires_in parameter in JSON to be an integer
  • Add determine_current_user hook for WP core authentication functionality
  • Added authentication support for WP REST API


  • Patch to possible exploit when editing a client.
  • Slight UI changes.
  • Patched auth code table for large id_tokens.
  • Fixed security issue with token lifetime.


  • Client name is not click able to show edit popup
  • Fixed issue with missing exits in API


  • Added specific OpenSSL bit length for systems that are not create keys at 2048 by default.
  • Added urlSafeBase64 encoding to Modulus and Exponent on delivery.
  • Tweak redirect location in API when a user is not logged in


  • Added userinfo endpoint to /.well-known/openid-configuration
  • Fixed improper return of keys when for public facing /.well-known
  • Auto generation of new certificates during activation to ensure all server have a different signature


  • Switched JWT Signing to uses RS256 instead of HS256.
  • Added OpenID Discovery with REQUIRED fields and values.
  • “sub” now complies with OpenID specs for format type.
  • Added JWT return for public key when using OpenID Discovery.


  • Bug fix in OpenID


  • Fixed “Undefined Error” in Authorization Controller. Credit to Frédéric. Thank You!
  • Remove “Redirect URI” Column from clients table to clean up table on smaller screens.
  • Updated banner and plugin icon.


  • Removed permalink check. OAuth Server now works without the use of permalinks.
  • Fixed install functionality. Not all tables were being installed.
  • Added support for cytpto tokens.
  • Added OpenID Connect abilities.
  • Mapped OpenID Claims to default user values
  • Added index to token table and increased access_token length to support crypto tokens in the future.
  • Added “email” to default me resource to support OpenID Connect 1.0
  • Added generic key signing for all clients.
  • Added public endpoint for verifying id_token (/oauth/public_key)


  • Updated Readme.txt content
  • Add more descriptive text during PHP version check
  • Fixed license links
  • Added Access Token and Refresh Token lifetime settings
  • Added upgrade method to ensure proper installing of new features


  • Modified how clients are added and edited
  • Add Pro Features
  • Added additional information to “Server Status” Tab
  • Minor Clean Up


  • Re added Authorization Code Enable Option
  • API unavailable error now uses OAuth Response object
  • API now reports when access token is not provided during resource calls


  • Updated cover image.
  • Fixed documentation links.
  • Added “Server Status” tab
  • Cleaned up “Advanced Configuration” contents.


  • Updated and rebuilt structure.
  • Visit http://wp-oauth.com for documentation and more information.


  • Rebuild init plugin code structure for more flexibility and scalability.
  • Added prefix to all DB connections
  • Changed install query to use the InnoDB engine for better support and performance.
  • Fixed improper loading of plugin style sheet.
  • Removed garbage data when plugin is activated. It was not being used and cluttering the code base as well as the database.
  • Move action template_redirect to rewrites file
  • Added login form support for installs that are installed in sub directory
  • Added missing in documentation for when calling requesting_token
  • Suppressed some errors that was preventing a proper JSON return when WP_DEBUG was enabled.
  • Added a client sample script to help learn the basics of connecting to the provider plugin.
  • Add legacy installer that will hopefully keep old data in tacked while updating to the new structure with no data loss.
  • Removed plugin logging as it was not really needed and caused more issues that it was worth.


  • Fixed Admin URL links for plugin dashboard


  • Fixed Broken login redirect


  • Re-worked Readme.txt
  • Fixed absolute paths causing 404 Error when WordPress is running under a sub directory (Using admin_url() currently)