Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 805 Bytes

Demo-nodejs.md

File metadata and controls

28 lines (16 loc) · 805 Bytes

AZ-204 Demo: Exploring Microsoft Graph Web API

In the demo you will use MSAL.JS libraries to request token and access to Microsoft Graph and pull your profile.

Technical Requirement:

  • Visual Studio Code
  • Node 16
  • App Registration account with access to AAD Users.Read.All
  • Check your app registration settings:
    WebApp

Demonstration

  1. Open Nodejs folder in VSCode.

  2. Open file authConfig.js and update clientid and authority values with you app credentials.

  3. Run local website command: node .\server.js

  4. Open browser on http://localhost:3000

  5. Click "Sign in" button and pull data from Graph API

    WebApp

User browser in private mode to avoid any automatic sign-in with your company's account!