To use One Drive, you need first to obtain the application id and password by completing the following steps using Google Chrome:
Procedure:
Go to the Microsoft Application Registration Portal.
https://apps.dev.microsoft.com
When prompted, sign in with your account credentials.
Find My applications and click Add an app.
Enter the app’s name, for example, AETL and click Create application.
Write down the password, we would need it later.
Click add platform.
Select the native application.
Click add permissions.
Fill In URL’s and click save
Use “Application Id” as “key” and “password” as “secret”
Click authorize and enter credentials if necessary