A simple Node.js client library for Oauth2 http://lelylan.github.com/simple-oauth2/
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
test
.eslintignore
.eslintrc.json
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
ORIGINAL_README.md
README.md
index.js
package.json

README.md

sf-extension-simple-oauth2

This module is a forked version of simple-oauth2 modified to be used in Smartface enviornment.

For general usage plase refer to the original README file first. This file is remain untouched. Usage differences for Smartface are explained in this document.

Install

This script will install the module for you:

(cd ~/workspace/scripts && npm i -S sf-extension-simple-oauth2)

Usage

const oauth2Lib = require('sf-extension-simple-oauth2');

Supported flows

Only the following flows are now supported. Others will not work!

  • Password Credentials Flow
  • Client Credentials Flow

The usage is same as defined in the original document