I am trying to integrate with OneDrive (Personal, not company) with my local n8n, not Cloud n8n.
I read that I need to have the Azure acccount to create the App Registration which will give the ClientID (or Application ID) and Client Secret, which I can able to get those two. After I have those two keyed in and click ‘Connect my account’ which I choose my personal account, it throws me the below message:
We’re unable to complete your request
unauthorized_client: The client does not exist or is not enabled for consumers. If you are the application developer, configure a new application through the App Registrations in the Azure Portal at Microsoft Azure.
Check Supported Account Types in App Registration:
When registering your application in Azure, you must select the correct “Supported account types.” For personal OneDrive integration, you need to select:
Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g., Skype, Xbox).
Then update your Redirect Uri to match the callback.
If you cannot update the app, just create another one.
Download ngrok for your system(Windows ,Linux etc…), is easy to follow their docs.
After running the ngrok service(eg: ngrok http YOUR-URL 5678), you will get an URL (like ngrok-random-words.app/dev), that will be your localhost new address.
Copy that address, and set in your n8n .env variable ‘‘WEBHOOK_URL=NGROK-URL-HERE”
Couse you have to set in your n8n Environment variables the WEBHOOK_URL=ONLY-NGROK-URL (eg: WEBHOOK_URL=https://lucky-customer.ngrok-free.dev ), Restart you n8n and that URL you see in node will change by itself.
P.S if u used npm to install n8n , then you have that .env file in the .n8n folder(if not create it).
If u used Docker, then you need to set in the .yml file.
After running this, restart n8n and open the link again. You should see the signup screen to create a new owner account (email and password).
This process does not require your old cloud login or password, and you do not need to recover your expired credentials. Just set up a new account as the instance owner.
Note: clear cookies as well, to avoid further issues.