This repo is intended as sample code illustrating how to use OpenID Connect authentication in your Node.js/Express 4 app by using the passport-openidconnect plugin for Passport.js.
I use mongodb for session storage using the connect-mongodb-session plugin for express-session.
The folder structure should look similar to the one generated by express-generator - run here with the --hbs option.
Authentication code is in controllers/authentication.js
, and application routes are defined in routes/index.js
.