Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 888 Bytes

File metadata and controls

22 lines (17 loc) · 888 Bytes

Twitter Login Demo with Stormpath

This is a Twitter login demo with Stormpath using the express-stormpath integration. Some SDK work needs to be done to make this fully work, so you'll see some hacks here and there.

To get this running:

  1. Set up a Twitter application at Twitter Dev
  2. Set up a Stormpath application with the Twitter directory configured at Stormpath Admin Console
  3. Clone this repo
  4. Open up this repo, and run npm install, assuming you have Node.js installed on your system.
  5. Set the following environment variables:
export STORMPATH_APPLICATION_HREF=
export STORMPATH_CLIENT_APIKEY_ID=
export STORMPATH_CLIENT_APIKEY_SECRET=
export TWITTER_CLIENT_ID=
export TWITTER_CLIENT_SECRET=
  1. Run the application with node server.js
  2. Go to http://localhost:3000. Enjoy!