Intuit OAuth2.0 Sample - NodeJS
This is a
sample app built using Node.js and Express Framework to showcase how to Authorize and Authenticate using Intuit's OAuth2.0 Client library.
Via Github Repo (Recommended)
$ cd sample $ npm install
Copy the contents from
.env within the sample directory:
$ cp .env.example .env
.env file to add your:
- PORT:(optional) Optional port number for the app to be served
- NGROK_ENABLED:(optional) By default it is set to
false. If you want to serve the Sample App over HTTPS ( which is mandatory if you want to test this app using Production Credentials), set the variable to
TLS / SSL (optional)
If you want your enpoint to be exposed over the internet. The easiest way to do that while you are still developing your code locally is to use ngrok.
You dont have to worry about installing ngrok. The sample application does that for you.
- Just set
$ npm start
Without ngrok (if you are using localhost i.e
You will see an URL as below:
💳 Step 1 : Paste this URL in your browser : http://localhost:8000 💳 Step 2 : Copy and Paste the clientId and clientSecret from : https://developer.intuit.com 💳 Step 3 : Copy Paste this callback URL into `redirectURI` : http://localhost:8000/callback 💻 Step 4 : Make Sure this redirect URI is also listed under the Redirect URIs on your app in : https://developer.intuit.com
With ngrok (if you are using ngrok i.e
Your will see an URL as below :
💳 Step 1 : Paste this URL in your browser : https://9b4ee833.ngrok.io 💳 Step 2 : Copy and Paste the clientId and clientSecret from : https://developer.intuit.com 💳 Step 3 : Copy Paste this callback URL into `redirectURI` : https://9b4ee833.ngrok.io/callback 💻 Step 4 : Make Sure this redirect URI is also listed under the Redirect URIs on your app in : https://developer.intuit.com
Click on the URL and follow through the instructions given in the sample app.
Intuit OAuth2.0 API Reference
Intuit OAuth2.0 Playground
Any reports of problems, comments or suggestions are most welcome.
Please report these on Issue Tracker in Github.