このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの 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: http://tools.ietf.org/html/rfc5849

Localization

“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 http://example.com/)

  • http://example.com/oauth/request_token The URL to obtain a Request Token.
  • http://example.com/oauth/authorize The URL to obtain User authorization.
  • http://example.com/oauth/access_token The URL to issue an Access Token.
  • http://example.com/oauth/(method 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:
http://example.com/oauth/sayHello

FAQ

none

評価

このプラグインにはレビューがありません。

貢献者と開発者

OAuth Provider はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“OAuth Provider” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

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 (https://github.com/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.