You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,27 +5,27 @@ A simple Python + Flask web app that demonstrates the flow of obtaining a [Twitt
5
5
## Setup
6
6
7
7
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:
8
-
1. add these values to a `config.cfg` file (local); or
9
-
2. set environment variables `TWAUTH_APP_CONSUMER_KEY` and `TWAUTH_APP_CONSUMER_SECRET` (cloud or local)
8
+
1. add these values to a `config.cfg` file (local deployment); or
9
+
2. set environment variables `TWAUTH_APP_CONSUMER_KEY` and `TWAUTH_APP_CONSUMER_SECRET` (cloud deployment)
10
10
2. Setup a [pipenv](https://pipenv.readthedocs.io/en/latest/) environment, and install dependencies:
11
11
1.`pipenv install`
12
12
2.`pipenv shell`
13
13
3. Start the app:
14
14
1.`python3 ./twauth-web.py`; or
15
15
2.`gunicorn twauth-web:app`
16
16
17
-
Note: the app must have an externally-accessible URL (i.e do not attempt to connect via localhost). You can run a tunnel e.g. `ngrok` for local use, or deploy to a cloud environment such as Heroku (a `Procfile` is included).
17
+
> 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).
18
18
19
19
Open a browser window on your demo app's external URL. Don't click the buttons yet!
20
20
21
-
Finally, revisit the dev portal, and add your app's callback URL (`http[s]://your-deployed-url/callback`) to the callback URL whitelist setting, before attempting to click through the demo pages.
21
+
Finally, revisit the dev portal, and add your app's callback URL (`http[s]://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.
0 commit comments