Open https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade to register a new app.
This tool requires that the redirect_uri
=
Switch to Certificates & secrets
tab, create a client secret
,
copy
and paste it to the input box below.
Switch to API permissions
tab, add permissions you need.
For OneDrive Index purpose, select following permssions: offline_access
,
Files.Read
, Files.Read.All
.