In the demo you will use MSAL.JS libraries to request token and access to Microsoft Graph and pull your profile.
- Visual Studio Code
- Node 16
- App Registration account with access to AAD Users.Read.All
- Check your app registration settings:
-
Open Nodejs folder in VSCode.
-
Open file authConfig.js and update clientid and authority values with you app credentials.
-
Run local website command: node .\server.js
-
Open browser on http://localhost:3000
-
Click "Sign in" button and pull data from Graph API