
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
This module provides a Hapi framework authentication plugin which implements CAS authentication. This module requires a session manger plugin to be registered with the Hapi server under which the hapi-cas plugin is registered. The hapi-server-session is known to work.
The API is fully documented in the api.md document.
$ npm install --save --production hapi-cas
A fully working example is provided as test case in the test directory.
const hapi = require('hapi');
const server = new hapi.Server();
server.connection({
host: 'localhost',
address: '127.0.0.1',
port: 8080
});
server.register(require('hapi-cas'), (err) => {
const options = {
casServerUrl: 'https://example.com/cas/',
localAppUrl: 'https://127.0.0.1:8080',
endPointPath: '/casHandler'
};
server.auth.strategy('casauth', 'cas', options);
}
);
// https://github.com/hapijs/discuss/issues/349
setImmediate(() => {
server.route({
method: 'GET',
path: '/foo',
handler: function (request, reply) {
// "username" would have been set from the XML returned by
// the remote CAS server
return reply(null, `username = ${request.session.username}`);
},
config: {
auth: {
strategy: 'casauth'
}
}
});
})
FAQs
An authorization plugin for Hapi that implements JASIG CAS authentication.
We found that hapi-cas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.