nextcloud / integration_onedrive

🗔 Integration of Microsoft OneDrive into Nextcloud
GNU Affero General Public License v3.0
32 stars 7 forks source link

Unauthorized client #35

Open alexmo1997 opened 1 year ago

alexmo1997 commented 1 year ago
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 https://go.microsoft.com/fwlink/?linkid=2083908.

This is not a duplicate of #4, I have the correct account type selected.

marcelklehr commented 1 year ago

The client does not exist or is not enabled for consumers.

Did you enable your client application in Azure for consumers?

alexmo1997 commented 1 year ago

I think so, I have set signInAudience to AzureADandPersonalMicrosoftAccount.

v1nsai commented 3 months ago

I encountered this recently and discovered that the client ID is in the Overview page of your Azure app registration, NOT the Certificates & Secrets section. Provide that and the value (not secret ID) of the secret and it will work.

I actually ended up here because I wanted to submit a PR for updating the instructions for OneDrive in the Nextcloud admin settings page. I'm still digging around in the code but I'm pretty sure I'm in the right repo at least.