Introduction
    A simple web app to get your refresh_token by Client ID and Client Secrets using Microsoft Graph API

    Based on microsoft-graph-api-auth

Prerequisite
  1. Open https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade to register a new app.

    This tool requires that the redirect_uri =

  2. Switch to Certificates & secrets tab, create a client secret , copy and paste it to the input box below.

  3. Switch to API permissions tab, add permissions you need.

    For OneDrive Index purpose, select following permssions: offline_access, Files.Read, Files.Read.All, Files.ReadWrite, Files.ReadWrite.All.

     

4. Authorize for code
5. Exchange Access Token
6. Result: Access_token And Refresh_token