Skip to content

Sample app showcasing the authentication flow for Workplace third-party apps.

Notifications You must be signed in to change notification settings

jokr/workplace-demo-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

workplace-demo-authentication

A demo application demonstrating the Workplace third-party app authentication. Upon redirect the server exchanges the code for an access token and makes an Graph API request to get some basic information about the company.

Running Locally

Make sure you have Node.js installed.

$ git clone <repo>
$ cd workplace-demo-authentication
$ touch .env

Open the .env file and enter the credential details of your app in the following form:

APP_ID=YOUR_APP_ID
APP_SECRET=YOUR_APP_SECRET
APP_REDIRECT=YOUR_APP_REDIRECT

Then start the application.

$ npm install
$ npm start

Your app should now be running on localhost:5000.

Deploying to Heroku

Make sure you have the Heroku CLI installed.

$ heroku create
$ heroku config:set APP_ID=YOUR_APP_ID
$ heroku config:set APP_SECRET=YOUR_APP_SECRET
$ heroku config:set APP_REDIRECT=YOUR_APP_REDIRECT
$ git push heroku master
$ heroku open

or

Deploy to Heroku

Documentation

About

Sample app showcasing the authentication flow for Workplace third-party apps.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published