cubx-authentication-client

1.1.0 • Public • Published

cubx-authentication-client

npm

This lib is part of the Cubbles platform. Use this lib to request an 'access_token' for Client > Base -interactions.

Install

$ npm install --save cubx-authentication-client

API

var cubxAuthenticationClient = require('cubx-authentication-client');
cubxAuthenticationClient('https://<your-cubbles-base-host>/_api/auth', 'store1', 'username', 'password',  function(err, access_token) {...});

CLI - local usage

# usage instructions 
$ node bin/cubxAuthenticationClient

CLI - global install

# install 
$ npm install --global cubx-authentication-client
 
# usage instructions 
$ cubx-authentication-client

Contribution

Testing

Currently testcases require a Cubble-Base-Instance available at http://boot2docker.me. Contact the author, if your have questions on how to setup a Base locally.

Pre-Commit Hooks

To make sure, only correctly styled and tested code will be commited, we use pre-commit hooks managed with the npm-module pre-commit.

On Windows, installing the pre-commit -hook fails with a message like pre-commit: EPERM: operation not permitted, symlink ... To create the symlink, please open a cmd 'as administrator' and run npm install. Check the .git/hooks folder for the new created symlink.

Notes

Project has been generated using https://github.com/maurizzzio/generator-node-npm

License

2016 Apache-2.0 © Cubbles

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.02latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.02
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i cubx-authentication-client

Weekly Downloads

2

Version

1.1.0

License

Apache-2.0

Last publish

Collaborators

  • judit.ross
  • jtrs
  • hrbu
  • pwr
  • edwingamboa
  • judit.haefner