Open https://portal.azure.com/#view/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,
User.Read, Files.ReadWrite.All