1.0.5 • Published 9 years ago

hapi-auth-stormpath v1.0.5

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

hapi-auth-stormpath

Build Status

Stormpath API authentication

It uses application.authenticationApiRequest of Stormpath API. We can load the key from path or define it as an object. We can also take advantage the group names as scope in a route config's auth.scope.

Example

Load the key from a predefined path (the apiKeyPath)

server.register({
  register: require('../'),
  options: {
    apiKeyPath: __dirname + '/data/key',
    appHref: 'https://your/stormpath/app/url'
  }
}, function(err) {}

Or using the API key object (the apiKey),

server.register({
  register: require('../'),
  options: {
    apiKey: {
        id: process.env['STORMPATH_APIKEY_ID'],
        secret: process.env['STORMPATH_APIKEY_SECRET']
    },
    appHref: 'https://your/stormpath/app/url'
  }
}, function(err) {}

License

MIT

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago