jack-auth-stormpath-passport

1.0.1 • Public • Published

jack-auth-stormpath-passport

NPM version Downloads

This Jack-Stack Plugin sets up stormpath-passport for user management

Configuration

For anything to work, you'll need to set your stormpath credentials either directly:

jack.use(require('jack-auth-stormpath-passport').configure({
  apiKeyId: 'something',
  apiKeySecret: 'something',
  appHref: 'something',
}));

or through node-config:

{
  stormpath: {
    apiKeyId: 'something',
    apiKeySecret: 'something',
    appHref: 'something',
  }
}

There are some additional optional parameters you may use:

  • restful - Causes the login/logout responses to send HTTP Status Codes, instead of HTML
  • callNext - Prevents the login/logout responses from responding. Instead each calls express next
  • passport - Any additional configuration you want to pass into passport.authenticate

Package Sidebar

Install

npm i jack-auth-stormpath-passport

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dncrews