More info: https://github.com/AzureAD/passport-azure-ad
- Create a new app at: https://apps.dev.microsoft.com
- Create a new password for our new app
- Clone the example:
git clone https://github.com/AzureADQuickStarts/AppModelv2-WebApp-OpenIDConnect-nodejs.git
- cd .\AppModelv2-WebApp-OpenIDConnect-nodejs\
- edit the config.js file and populate the file:
- identityMetadata: 'https://login.microsoftonline.com/TENANT_NAME.onmicrosoft.com/v2.0/.well-known/openid-configuration',
- clientID: clientID/appID from the app created above
- clientSecret: password for the app created above
- exports.useMongoDBSessionStore: false
- Install dependencies
npm install
- Run the app
node app.js
- Hit the app at http://localhost:3000 using an admin account, and grant the permissions required to use the app