Set up as follows:
Install virtualenvwrapper
if it isn't already installed:
pip install virtualenvwrapper
Create a virtualenv, using python 3:
mkvirtualenv --python $(which python3) flask-oauth
Install the requirements:
pip install -r requirements.txt
Set up your Slack application:
https://api.slack.com/docs/sign-in-with-slack
If needed, use ngrok to create a tunnel (and public https url) to your local app.
Save the python file below as runme.py
and run it like this:
FLASK_APP=runme.py FLASK_DEBUG=1 flask run -p 8880
The python code refers to github throughout because it was stolen from a github example at https://github.com/lepture/flask-oauthlib/tree/master/example But it does not use github at all, it tries to use Slack.
It does not currently work. What is the secret sauce to make it work?
I think your error is simply the fact that
github.get('user')
should have beenresp.get('user')