[Community Edition] OAuth Example -- Python Flask web app
Clone or download
Latest commit 01f2261 Sep 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci run tests nightly Mar 16, 2018
templates add error handling with v0.1.5 Mar 8, 2018
.gitignore add e2e test Mar 12, 2018
README.md Update README.md Jul 11, 2018
app.py show debug message on oauth error Mar 9, 2018
requirements.txt use v0.1.6 or later Mar 14, 2018
setup.py run tests on CircleCI Mar 8, 2018
test_app.py fix. update display_name Sep 13, 2018
tox.ini fix. setup for CI Mar 12, 2018

README.md

OAuth Example - Python Flask web app

CircleCI

Requirements

Installation

Install with pip:

$ pip install -r requirements.txt

How to run

Register your app

Visit "My apps" console and set

  • Name: as you like
  • Redirect uris: http://127.0.0.1:5000/callback

Set scopes (whitelists) in "Authorization scopes" panel.

  • report:eye-color
  • report:beard-thickness
  • report:morning-person

Run your app

$ export GENOMELINK_CLIENT_ID=<your_client_id>
$ export GENOMELINK_CLIENT_SECRET=<your_client_secret>
$ export GENOMELINK_CALLBACK_URL="http://127.0.0.1:5000/callback"
$ python app.py

then, visit http://127.0.0.1:5000

How it works

See https://genomelink.io/developers/docs/tutorial-oauth-example/