Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 941 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 941 Bytes

oAuth test application with Flask

Get Google credentials

https://developers.google.com/identity/gsi/web https://developers.google.com/identity/gsi/web/guides/overview

flask_oauthlib

Read:

Debugging

To run flask in debug mode, first setup virtual environment for python at the top level of the repo, activate, then add dependencies from requirements.txt:

cd ~/git/ex_oauth_flask
python3 -m venv venv
. venv/bin/activate
pip3 install Flask Authlib requests pyjwt

then start the flask application

cd ~/git/ex_oauth_flask
export FLASK_ENV=development
export FLASK_APP=flask_app/routes
flask run

test through flask (no SSL): http://localhost:5000/api/v1/name?namestr=Notemigonus%20crysoleucas%20(Mitchill,%201814) http://localhost:5000/api/v1/occ?occid=01493b05-4310-4f28-9d81-ad20860311f3