Page MenuHomePhabricator

Implement oauth using mwoauth
Closed, ResolvedPublic

Description

Implement mediawiki oauth using mwoauth

https://github.com/wikimedia/MediaWiki-OAuth
https://pypi.python.org/pypi/mwoauth

mwoauth is py2.7+ while pywikibot is py2.6+ , but this can be a feature not supported on py2.6.

The list of dependencies is reasonable, except that it is restricted to not using PyJWT unplanned future version v2, which is a bit odd but doesnt hurt at present (maybe @Halfak can explain...?)

https://github.com/wikimedia/MediaWiki-OAuth/blob/master/setup.py

install_requires=[
    'PyJWT>=1.0.1,<2.0.0',
    'oauthlib',
    'requests',
    'requests-oauthlib',
    'six'
],

Event Timeline

jayvdb assigned this task to VcamX.
jayvdb raised the priority of this task from to Medium.
jayvdb updated the task description. (Show Details)
jayvdb added a project: Pywikibot-OAuth.
jayvdb subscribed.
jayvdb set Security to None.
jayvdb added a subscriber: Halfak.

The rationale behind PyJWT<2.0.0 was that v2 probably comes along with breaking changes and was suggested by a pyjwt dev in issue:15. Previously a version upgrade of pyjwt broke mwoauth, see issue:13.