Demonstration code for accompanying blog post
-
Clone this repo
-
Populate
.env
files with your Azure AD App registration detailsAZURE_CLIENT_ID = <Azure AD Application (client) ID> AZURE_TENANT_ID = <Azure AD Directory (tenant) ID> AZURE_CLIENT_SECRET = <Azure AD Client Secret>
Ensure your App registration has been granted
User.Read.All
Application permissions for this demo (or change the API call in the code) -
Install dependencies
npm install
-
Build and start
npm run build && npm run start