Acest modul nu a fost testat cu ultimele 3 versiuni importante ale WordPress. S-ar putea să nu mai fie întreținut sau susținut și ar putea avea probleme de compatibilitate când este folosit cu versiuni recente ale WordPress.

OAuth Provider


This plugin is experimental and is enable to make your site an OAuth provider.
Currently the plugin offers features as below:

  • Registering applications (obtaining a Consumer Key).
  • Issuing an Access Token.
  • Using the obtained Consumer Key and the Access Token, you can register a method which is executed after connected.
  • Using the obtained Consumer Key and the Access Token, you can execute the registered method.

PHP5 Required.

Special thx to DigitalCube Co. Ltd.!

Thx. Robert!
So, what I’ve noticed is that in this file one parameter is called „callbackurl” which should be called „oauth_callback”, according to the rfc:


„OAuth Provider” has been translated into languages. Our thanks and appreciation must go to the following for their contributions:

  • French (fr_FR) – Jeremy Castellano
  • Japanese (ja) – OKAMOTO Wataru (plugin author)

If you have translated into your language, please let me know.


  1. Upload the entire oauth-provider folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

The control panel of OAuth Provider is in ‘OAuth Provider’.

After enabled this plugin, you can access URLs as below:
(suppose your WordPress’s URL is

  • The URL to obtain a Request Token.
  • The URL to obtain User authorization.
  • The URL to issue an Access Token.
  • name) The URL to call a OAuth method using a Consumer key and an Access Token.

The OAuth method sayHello, which is implemented in this plugin for now, is simply returning a user name.

You can register a method using add_oauth_method($name, $method).
You can use this function like add_filter().

You can easily add the sayHello method like below:
add_oauth_method(‘sayHello’, create_function(‘$request, $userid, $username’, ‘return „Hello {$username}!”;’));

To execute the registered sayHello method, access the URL below:

Întrebări frecvente



Nu există nicio verificare pentru acest modul.

Contributori și dezvoltatori

„OAuth Provider” este un software open-source. La acest modul au contribuit următoarele persoane.


Istoric modificări

0.5.4 – July 16, 2013
Added languages/oauth-provider-fr_FR.po and .mo

0.5.3 – December 4, 2012
callbackurl should be oauth_callback (on the authorize form)
port numbers on callback urls should be preserved.
thx. timginn (

0.3.2 – August 17, 2012
Parameter is called „callbackurl” which should be called „oauth_callback”.

0.3.1 – August 1, 2011
Minor bug fix.

0.3.0 – July 27, 2011
Added login form.

0.2.0 – July 27, 2011
Initial release.