Extension:OAuth/zh

The OAuth extension implements an OAuth server in MediaWiki that supports both the OAuth 1.0a and OAuth 2.0 protocol versions. It allows third party developers to securely develop applications ("consumers"), to which users can give a limited set of permissions ("grants"), so that the application can use the MediaWiki action API on the user's behalf.

条件

 * OAuth relies on the object cache for temporary tokens and sessions. This should work as long as cache configuration settings are sane. (Older versions required Memcached explicitly.)
 * Currently, only mysql and sqlite database backends are supported
 * If the mediawiki installation is private (i.e. users need to log in to have read access), Special:OAuth will need to be added to the white list.

用户权限
To assign a permission to some group, for example to sysops, you add following line to :

OAuth 2.0 REST endpoints
The following REST endpoints are provided for OAuth 2.0 interaction

Experimental REST endpoints
To enable the /oauth2/clients endpoints, add the configuration variable to your LocalSettings.php:

参见

 * – A MediaWiki extension that lets your wiki delegate authentication to another wiki that is running Extension:OAuth.
 * - A similarly named extension which implements a second authentication factor using OATH-based one-time passwords.
 * – A MediaWiki extension that lets your wiki delegate authentication to any OAuth provider using PluggableAuth, including a wiki that is running Extension:OAuth.
 * – a client library for OAuth consumers.