This is a simple proof of concept (PoC) project to demo Azure AD Single Sign-On (SSO) using the MSAL.js library and query user information using the Microsoft Graph API via microsoft-graph-client.
Set the clientId
and tenantId
environment variables by modifying the .env file in the project root.
These values can be found on the Application registration page within Azure AD, under the registered applications page.
PORT=3002 yarn start
Note: the port can be anything, but care must be taken to ensure that a corresponding redirect URL has been set up for the application within Azure AD