User:CSteipp (WMF)/OAuth demo client

In order to use OAuth to make MediaWiki api calls on behalf of another user, you need to:
 * 1) Register your application, and get it approved by a wiki admin
 * 2) Get the user's permission, and get a set of authorized tokens
 * 3) When making api calls, include an Authorization: HTTP header, which identify the user and prove your possession of the authorized token

Register your Application (Consumer)

 * Visit: https://www.mediawiki.org/wiki/Special:MWOAuthConsumerRegistration/propose
 * The wiki admin will use the email you leave there to contact you when your application has been approved

Obtain Authorized Tokens
You will need to complete this protocol for each user, in order to obtain the unique token and secret for that individual user. In a picture, this looks like.

The $data returned above contains the authorized token and secret to use when making api calls on behalf of the user. To use the authorized token/secret to make an edit, you will use some code such as: