A demo version of this application is available at http://automatic-oauth-example-nodejs.herokuapp.com/.
Click this button to instantly deploy this app to Heroku. You'll need an Automatic client ID and secret.
After deploying, you will need to use the Automatic Developer Apps Manager to set your application's redirect URL to match the Heroku app name you selected when deploying. For instance, if you name your app
oauth-test in Heroku your redirect URL should be
https://oauth-test.herokuapp.com/redirect. Note that the URL must start with
brew install node
Add your Automatic client id to
automatic section or as environment variable.
Secret ID has to be passed through dedicated environment variable!
Those environment variables are, respectively,
localhost:3000 in your browser.
If you have the heroku toolbelt installed, you can create, configure and deploy this app to Heroku. To create an app:
If you already created an app, add it as a git remote:
git remote add heroku YOUR-HEROKU-GIT-URL
Configure the heroku app's environment variables:
heroku config:add AUTOMATIC_CLIENT_ID="YOUR AUTOMATIC CLIENT ID" heroku config:add AUTOMATIC_CLIENT_SECRET="YOUR AUTOMATIC CLIENT SECRET"
Deploy your app to heroku:
git push heroku master
See deploying a node.js app for more information.
Please write to email@example.com if you have any questions or need help.
This project is licensed under the terms of the Apache 2.0 license.