Hapi-SSPI
Implements Windows SSPI authentication for Hapi.
Example
'use strict';const hapi = ; const server = ;server; { if credentialsuser && credentialsuserGroups ; else ; } server;
Options
Base options are the same as implemented in node-sspi plus a validate function that takes hapiRequest, credentials (user and userGroups if enabled), and a callback. The callback should be called with error, isValid, credentials object.
These values will be set on hapiRequest.auth.credentials.
You can set the options upon registration and/or setting of the strategy. The validate function is optional.
Notes
This will only work in Windows as restricted by node-sspi.
License
MIT as provided in LICENSE file