Scaffold a NodeJS + Express web application with AzureAD authentication built-in
This Yeoman generator scaffolds out an entire Express 4 application, complete with authentication against Azure Active Directory using OpenID Connect, PassportJS and passport-azure-ad.
Demo:
- Be sure to read through the AzureAD Documentation including Integrating with Azure Active Directory
- The scaffolded app uses
async/await
features from Node v8. Either ensure you have Node v8+ installed, or remove the async code from the/routes/profile.js
file.
First, install Yeoman and generator-express-azuread using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-express-azuread
Then generate your new project:
yo express-azuread
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
MIT © Steven Follis