@ygrene/thua
v1.0.3
Published
Ygrene auth stretegies for microservices on node.js OIDC, PSK
Downloads
6
Readme
thua
Ygrene auth stretegies for microservices on node.js OIDC, JWT, PSK. -A Hapi.js Auth
Install
$ npm install thua
Usage
const Hapi = require('hapi');
const thua = require('@ygrene/thua');
...
server.auth.scheme('thuaSso', thua.ssoScheme, {
cookieName: `YOUR_COOKIE_NAME`
});
server.auth.scheme('thuaPsk', thua.pskScheme, {
psk: ['list', 'of', 'shared', 'tokens'] | {'serviceId': 'psk'}
});
server.auth.strategy('sso', 'thuaSso');
server.auth.strategy('psk', 'thuaPsk');
License
MIT © austbot