https://github.com/smartface/sf-extension-simple-oauth2
A simple Node.js client library for Oauth2 http://lelylan.github.com/simple-oauth2/
https://github.com/smartface/sf-extension-simple-oauth2
Last synced: about 1 year ago
JSON representation
A simple Node.js client library for Oauth2 http://lelylan.github.com/simple-oauth2/
- Host: GitHub
- URL: https://github.com/smartface/sf-extension-simple-oauth2
- Owner: smartface
- Created: 2017-06-30T21:13:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-30T21:14:07.000Z (almost 9 years ago)
- Last Synced: 2025-02-01T20:30:15.428Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 809 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# sf-extension-simple-oauth2
This module is a forked version of [simple-oauth2](https://github.com/lelylan/simple-oauth2) modified to be used in Smartface enviornment.
For general usage plase refer to the [original README file](./ORIGINAL_README.md) first.
This file is remain untouched. Usage differences for Smartface are explained in this document.
## Install
This script will install the module for you:
```shell
(cd ~/workspace/scripts && npm i -S sf-extension-simple-oauth2)
```
## Usage
```javascript
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](./ORIGINAL_README.md)