gIt-SpLasHeR / MSGraphAppAccessToken

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Microsoft Graph Application Permissions Access Token

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.

Instructions

  1. 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

  2. Clone this repository

  3. Run npm install to install dependencies

  4. Run tsc --build to compile to JavaScript in to dist folder

  5. 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"

  6. Run npm start to run the script

About

License:MIT License


Languages

Language:TypeScript 100.0%