Skip to content

clpo13/flask-oauth

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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.

Releases

No releases published

Packages

No packages published