This repo contains a sample single page application (SPA) that shows how to show people that a user works with on Microsoft 365. The app is built using the Microsoft Graph Toolkit and Microsoft Graph.
- Node.js LTS
- Microsoft 365 developer tenant, you can get it for free through the Microsoft 365 developer program
- Clone the repo
- Change the working directory to the repo folder
- Start terminal, change the working directory to the repo folder and run:
chmod +x setup.sh
- Run the setup script:
./setup.sh
- Start the development server:
npx lite-server
- In your web browser open
http://localhost:3000/index.html
- Allowing users to sign in to the application using their Microsoft 365 account with the Microsoft Graph Toolkit's Login component
- Programmatically initializing the MSAL2 auth provider from Microsoft Graph Toolkit
- Initializing Microsoft Graph Toolkit authentication provider with predefined scopes
- Conditionally showing content after the user has signed in
- Using the Microsoft Graph JS SDK from the Microsoft Graph Toolkit
- Registering a new Azure AD application for a single page app using CLI for Microsoft 365