Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Dynamic Override Example

Install

$ cd examples/dynamic
$ npm install

OAuth Application

Create OAuth application for Facebook. Set the application domain to be dummy.com

In your hosts file add this line dummy.com 127.0.0.1

Configure

Edit the config.json file with your own OAuth application credentials

Run the App

$ node app.js

Start the Flow

To start the OAuth flow for Facebook and dynamically override the state parameter via POST request navigate to http://dummy.com:3000/connect_facebook_post

To start the OAuth flow for Facebook and dynamically override the state parameter via GET request navigate to http://dummy.com:3000/connect_facebook_get

Alternatively navigate to http://dummy.com:3000/form to choose state and scope to request