1.0.1 • Published 10 years ago
jack-auth-stormpath-passport v1.0.1
jack-auth-stormpath-passport
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 HTMLcallNext- Prevents the login/logout responses from responding. Instead each calls expressnextpassport- Any additional configuration you want to pass intopassport.authenticate