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
Release history Release notifications | RSS feed
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.0.tar.gz
(2.8 kB
view details)
File details
Details for the file mwoauth-0.1.0.tar.gz
.
File metadata
- Download URL: mwoauth-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da359bfa7a226f427f41c4268d37a80580d04af6acec3436edd3367c343bb733 |
|
MD5 | ebcbaf6c8be67d0af6a6160c286ab98a |
|
BLAKE2b-256 | 9d55d29e69b4f241498c2386d68ca89432e2ca4775db66596edea8878e7a7ae9 |