OneDrive / onedrive-sdk-python

OneDrive SDK for Python! https://dev.onedrive.com
MIT License
1.08k stars 189 forks source link

invalid_client error when authenticating #196

Closed yuedai0531 closed 2 years ago

yuedai0531 commented 2 years ago

I keep getting invalid_client error when authenticating. I went on Azure portal > App registrations and created an app. The client ID i am using is Application (client) ID that you find in the overview. I also created a client secret in Certificates & secrets.

Here are the error details:

client.auth_provider.authenticate(code, redirect_uri, client_secret) File "onedrivesdk_fork/auth_provider.py", line 200, in authenticate response = self._http_provider.send(method="POST", File "onedrivesdk_fork/http_provider.py", line 71, in send custom_response = HttpResponse(response.status_code, response.headers, response.text) File "onedrivesdk_fork/http_response.py", line 61, in init raise Exception(str(message["error"])) Exception: invalid_client

yuedai0531 commented 2 years ago

more details on the error. image

yuedai0531 commented 2 years ago

The error was with the client_secret I was using client secret ID instead of Value image

smartcmsteam commented 1 year ago

The error was with the client_secret I was using client secret ID instead of Value image

it works perfect, many thanks.