A demonstration of how to obtain an access token to call OAVER APIs
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_sources
bin
public/stylesheets
views
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
app.js
package.json

README.md

OAVER

Build Status dependencies Status

This is a demonstration of how to obtain an access token to call OAVER APIs on behalf of a user via the authorization code.

Visit Documentation to get started with OAVER.

Installation

$ npm i

Configuration

// app.js
var server  = 'http://OAVER-SERVER';     // Your application URL
var api     = 'http://API.OAVER-SERVER'; // API subdomain
var oaver   = new ClientOAuth2({         // Client
  clientId: 'CLIENT-ID',
  clientSecret: 'CLIENT-SECRET',
  accessTokenUri: server + '/oauth/token',
  authorizationUri: server + '/oauth/authorize',
  redirectUri: 'http://localhost:3000/callback', // Callback URL
  scopes: ['read-email', 'read-mobile-phone']    // Scopes
});

Usage

$ npm start

Open http://localhost:3000

Screenshots

1 2 3