Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

flask-oauth

Flask WSGI tool example with OAuth: https://wikitech.wikimedia.org/wiki/Help:Toolforge/My_first_Flask_OAuth_tool

Requires an OAuth consumer grant from https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose and a config.yaml file with the contents:

GREETING: Goodnight moon!
SECRET_KEY: <random secret string>
OAUTH_MWURI: https://meta.wikimedia.org/w/index.php
CONSUMER_KEY: <consumer token>
CONSUMER_SECRET: <consumer secret token>

For SECRET_KEY, try using the results of python -c "import os; print(repr(os.urandom(24)))".

Install dependencies with pip install -r requirements.txt (preferably in a virtualenv).

To run locally, try FLASK_APP=app.py FLASK_ENV=development flask run.

About

Flask WSGI tool example

Resources

License

Releases

No releases published

Packages

No packages published