Follow below steps to get your Microsoft/OneDrive account's Client ID and Secret/Password Key:
Step 1: Goto Microsoft Application Registration Portal
Step 2: Login into your Microsoft account
Step 3: Click on Add an App
Step 4: Enter your app's name and click Create application.
Step 5. There you will see "Application ID" in OneDrive your application works like your "Client ID", copy it.
Step 6: Click on "Add Platform" button
Step 7: Select "Web Application"
Step 8. Copy this url "https://snappy.appypie.com/app/onedrive" and paste it in Redirect URIs section
Step 9: Scroll to the bottom of the page and check the Live SDK support box, then Save.
Step 10: Scroll up to the same page and click on "Generate New Password" button to get your Password/Secret Key