Jump to content

Obsolete:Setting up Flask cgi app as a tool/OAuth

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page is obsolete. For up-to-date information, see: https://wikitech.wikimedia.org/wiki/Help:Toolforge/My_first_Flask_OAuth_tool

Use flask-mwoauth, from https://github.com/valhallasw/flask-mwoauth

NOTE: DO NOT install httplib2 from pip (e.g. when using a virtualenv), as it does not have the root certificates required for connecting to WMF wikis! Use the system httplib2, or use https://github.com/wikimedia/pywikibot-externals-httplib2