A simple Python + Flask web app that demonstrates the flow of obtaining a Twitter user OAuth access token.
twauth-web.py
for more details, but you can either:
config.cfg
file (local deployment); orTWAUTH_APP_CONSUMER_KEY
and TWAUTH_APP_CONSUMER_SECRET
(cloud deployment)pipenv install
pipenv shell
python3 ./twauth-web.py
; orgunicorn twauth-web:app
Note: the app must have an Internet-accessible URL - do not attempt to connect via localhost, as this will not work. You can run a tunnel e.g.
ngrok
for local use, or deploy to a cloud platform such as Heroku (aProcfile
is included).
Open a browser window on your demo app's external URL. Don't click the buttons yet!
Finally, revisit the dev portal, and add your app's callback URL (https://your-deployed-url/callback
) to the callback URL whitelist setting. Once saved, follow the instructions on the app's web UI to click through the demo pages.
Twitter Developer Portal
Flask
python-oauth2
Bootstrap
Original version by Jacob Petrie
https://twitter.com/jaakkosf
https://github.com/jaakko-sf/twauth-web
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4