Skip to content

gazelle-network/oauth2-node-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a very simple NodeJS Express app demonstrating the process of having your users authorize your app with Gazelle and then fetching data.

Instructions

To install the NodeJS packages run npm install.

To run you will first need to have created a Gazelle App in the developer console.

Then set environment variables to the App ID, secret, and URL you want Gazelle to redirect to once a user has authorized your App. The callback URL must be included in the list of authorized callback URLs you configured for your Gazelle App in the developer console.

Finally, run the demo with just node server.js:

export GAZELLE_APP_ID=YOUR_ID
export GAZELLE_APP_SECRET=YOUR_SECRET
export GAZELLE_APP_CALLBACK_URL=http://localhost:4567/callback

node server.js

Then open your browser to http://localhost:4567 and follow the instructions.

Full API documentation can be found here: https://gazelleapp.io/docs/graphql/private/

About

Demonstration of using OAuth 2.0 with Gazelle in NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published