- Basics
- HTTP Frameworks
- Session Stores
- Configuration Overrides
- Misc
$ cd examples/[example-folder]
$ npm installMost of the examples are using Facebook and Twitter for showcasing the OAuth2 and OAuth1 flow respectively.
Create OAuth apps for Facebook and Twitter and set their redirect_uri accordingly:
http://localhost:3000/connect/facebook/callbackhttp://localhost:3000/connect/twitter/callback
Add your OAuth app credentials in config.json
$ node app.jsNavigate to the following URLs in your browser:
http://localhost:3000/connect/facebookhttp://localhost:3000/connect/twitter
The static overrides example have a bunch of login URLs:
http://localhost:3000/connect/facebookhttp://localhost:3000/connect/facebook/photoshttp://localhost:3000/connect/facebook/videoshttp://localhost:3000/connect/twitterhttp://localhost:3000/connect/twitter/write
Navigate to http://localhost:3000/form in your browser and pick a few scopes to test dynamic override via POST request.
Navigate to http://localhost:3000/connect/facebook?scope=user_photos%2Cuser_videos in your browser to test dynamic overrides via GET request.
Create OAuth apps for Facebook and Twitter and set their redirect_uri accordingly:
http://localhost:3000/path/prefix/connect/facebook/callbackhttp://localhost:3000/path/prefix/connect/twitter/callback
# generate private key
openssl genrsa 2048 > private.pem
# generate the self signed certificate
openssl req -x509 -new -key private.pem -out public.pem