Github/Authentication: Difference between revisions
From charlesreid1
(Created page with "If using Github as an authentication layer, use flask with flask-dance. Flask: http://flask.pocoo.org/ Flask-dance: https://github.com/singingwolfboy/flask-dance") |
No edit summary |
||
| Line 4: | Line 4: | ||
Flask-dance: https://github.com/singingwolfboy/flask-dance | Flask-dance: https://github.com/singingwolfboy/flask-dance | ||
Doing anything with localhost requires the following environment variable to be set in your main driver code: | |||
<pre> | |||
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = 'true' | |||
</pre> | |||
This allows you to do the OAuth step without using HTTPS (which is necessary if you're doing stuff on localhost). | |||
[[Category:Github]] | |||
Latest revision as of 21:06, 8 October 2018
If using Github as an authentication layer, use flask with flask-dance.
Flask: http://flask.pocoo.org/
Flask-dance: https://github.com/singingwolfboy/flask-dance
Doing anything with localhost requires the following environment variable to be set in your main driver code:
os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = 'true'
This allows you to do the OAuth step without using HTTPS (which is necessary if you're doing stuff on localhost).