jack-auth-stormpath-passport

Olympus Plugin for Stormpath Authentication via Passport

Usage no npm install needed!

<script type="module">
  import jackAuthStormpathPassport from 'https://cdn.skypack.dev/jack-auth-stormpath-passport';
</script>

README

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