Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

passport-umd-cas

1.1.5 • Public • Published

passport-umd-cas

npm version CircleCI Codecov npm downloads

Passport strategy for UMD CAS login system

Install

npm install passport-umd-cas

Usage

passport.use(new UMDCASStrategy({ callbackURL: '/umd/return' }));

app.get('/umd/login', passport.authenticate('umd-cas'));
app.get('/umd/return', passport.authenticate('umd-cas'), (req, res) => {
    res.redirect('/')
});

app.get('/', (req, res) => {
    if (req.user) {
        res.send(req.user);
    } else {
        res.send('Please login');
    }
});

Install

npm i passport-umd-cas

DownloadsWeekly Downloads

4

Version

1.1.5

License

MIT

Unpacked Size

12.7 kB

Total Files

9

Last publish

Collaborators

  • avatar