This is a sample on how to use the Microsoft Graph JavaScript SDK with Application Permissions and your own Authentication Provider. For more information, see my blog post here.
-
Create an Azure AD app with Graph Application Permissions. You will need the app ID, tenant ID and secret - for more info, see link to blog above
-
Clone this repository
-
Run
npm install
to install dependencies -
Run
tsc --build
to compile to JavaScript in to dist folder -
Create an .env file in the dist folder and place the following inside (with your app details):
MicrosoftAppId="Azure AD App Id"
MicrosoftAppPassword="Azure AD App Secret"
MicrosoftAppTenantId="Azure AD Tenant Id"