All Projects → twitterdev → twauth-web

twitterdev / twauth-web

Licence: MIT license
A simple Python Flask web app that demonstrates the flow of obtaining a Twitter user OAuth access token

Programming Languages

HTML
75241 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to twauth-web

Codebird Js
A Twitter library in JavaScript.
Stars: ✭ 382 (+487.69%)
Mutual labels:  oauth, twitter-api
larry
Larry 🐦 is a really simple Twitter bot generator that tweets random repositories from Github built in Go
Stars: ✭ 64 (-1.54%)
Mutual labels:  twitter-api
Twitch
[READ ONLY] Subtree split of the SocialiteProviders/Twitch Provider (see SocialiteProviders/Providers)
Stars: ✭ 20 (-69.23%)
Mutual labels:  oauth
twitter-ruby-ads-sdk
A Twitter supported and maintained Ads API SDK for Ruby.
Stars: ✭ 63 (-3.08%)
Mutual labels:  twitter-api
twitivity
🐍 Twitter Accounts Activity API Client Library for Python
Stars: ✭ 49 (-24.62%)
Mutual labels:  twitter-api
VKontakte
[READ ONLY] Subtree split of the SocialiteProviders/VKontakte Provider (see SocialiteProviders/Providers)
Stars: ✭ 82 (+26.15%)
Mutual labels:  oauth
Tweet-2-RSS
Convert your Twitter API requests to RSS Feeds
Stars: ✭ 14 (-78.46%)
Mutual labels:  twitter-api
twitter-digest
✉️ A netlify lambda function that emails you tweets from a twitter list.
Stars: ✭ 14 (-78.46%)
Mutual labels:  twitter-api
search-tweets-ruby
Ruby client for the Twitter search endpoints (v2/Labs/premium/enterprise). Now supports Twitter API v2 /recent and /all search endpoints.
Stars: ✭ 45 (-30.77%)
Mutual labels:  twitter-api
yii-auth-client
Yii Framework external authentication via OAuth and OpenID Extension
Stars: ✭ 20 (-69.23%)
Mutual labels:  oauth
lumen-oauth2
OAuth2 module for the Lumen PHP framework.
Stars: ✭ 29 (-55.38%)
Mutual labels:  oauth
oauth2-server
A spec compliant, secure by default PHP OAuth 2.0 Server
Stars: ✭ 6,128 (+9327.69%)
Mutual labels:  oauth
oauthproxy
This is an oauth2 proxy server
Stars: ✭ 32 (-50.77%)
Mutual labels:  oauth
socialigniter
This is core install of social igniter application. Please follow the Readme below
Stars: ✭ 78 (+20%)
Mutual labels:  oauth
Tweetstorm
🐦 Twitter UserStream APIの簡単な代替実装 / A simple substitute implementation for the Twitter UserStream
Stars: ✭ 55 (-15.38%)
Mutual labels:  twitter-api
firebase auth oauth
A Flutter plugin that makes it easy to perform OAuth sign in flows using FirebaseAuth.
Stars: ✭ 28 (-56.92%)
Mutual labels:  oauth
login-server
Login and connect accounts with multiple identity providers
Stars: ✭ 28 (-56.92%)
Mutual labels:  oauth
supabase-ui-svelte
Supabase authentication UI for Svelte
Stars: ✭ 83 (+27.69%)
Mutual labels:  oauth
twittered
Twitter API client for Java developers
Stars: ✭ 170 (+161.54%)
Mutual labels:  twitter-api
2017-year-in-review
Year in Review with R Rmd Template
Stars: ✭ 34 (-47.69%)
Mutual labels:  twitter-api

twauth-web

A simple Python + Flask web app that demonstrates the flow of obtaining a Twitter user OAuth access token.

Setup

  1. Obtain consumer key and secret from the Twitter Developer portal. The app should be configured to enable Sign in with Twitter. See twauth-web.py for more details, but you can either:
    1. add these values to a config.cfg file (local deployment); or
    2. set environment variables TWAUTH_APP_CONSUMER_KEY and TWAUTH_APP_CONSUMER_SECRET (cloud deployment)
  2. Setup a pipenv environment, and install dependencies:
    1. pipenv install
    2. pipenv shell
  3. Start the app:
    1. python3 ./twauth-web.py; or
    2. gunicorn 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 (a Procfile 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.

Reference

Twitter Developer Portal
Flask
python-oauth2
Bootstrap

Credits

Original version by Jacob Petrie
https://twitter.com/jaakkosf
https://github.com/jaakko-sf/twauth-web

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].