Skip to main content

A generic MediaWiki OAuth handshake helper.

Project description

This library provides a simple means to performing an OAuth handshake with a MediaWiki installation with the OAuth Extension.

Usage

import mwoauth
oauth = mwoauth.OAuth(
    "https://en.wikipedia.org/w/index.php",
    "<consumer key>",
    "<consumer secret>"
)
redirect, resource_owner = oauth.initiate()
print("Go to: %s" % redirect)

auth = oauth.complete(resource_owner, raw_input("response_qs: "))

print oauth.identify(auth)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mwoauth-0.1.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page