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 details)

Uploaded Source

File details

Details for the file mwoauth-0.1.1.tar.gz.

File metadata

  • Download URL: mwoauth-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mwoauth-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c3529409eeb84cb68ac24e208cd5193b07ca5351e8713adef8b446b61adf8ef5
MD5 64363e3ae7db07faa211be0d290b280a
BLAKE2b-256 92393774eac70a65fd31f04d01247504f6a0173327f1fb1b9facaf4a362e0fa9

See more details on using hashes here.

Supported by

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