peeter123 / digikey-api

Python module for the Digikey PartSearch API
GNU General Public License v3.0
84 stars 35 forks source link

Can't authenticate #6

Closed JaredTCan closed 3 years ago

JaredTCan commented 4 years ago

Running the v3 branch, the "use" example in the readme results in {"ErrorResponseVersion":"3.0.0.0","StatusCode": 401,"ErrorMessage":"Invalid clientId","ErrorDetails":"clientId invalid for requested resource","RequestId":"fae07ab5-88cf-4582-e7df-94d89fb8f9b4","ValidationErrors":[]}

On the page where I'd expect to see a user login. I've checked and double checked that my clientid is valid

peeter123 commented 4 years ago

I think you created a sandbox application, you need to create a production application for it to work.

You can however now use sandbox API as well (see updated branch)

howardwang0620 commented 4 years ago

I created a production application and using the example, I've received an error with authentication: digikey.oauth.oauth2 - WARNING: Token storage does not exist or malformed, creating new.

The oauth2 authentication in the browser is giving me error "400 - Unknown or invalid client_id".

Everything seems to be in order with client id and client secret, not sure why I'm getting this error

Amdixer commented 4 years ago

I created a production application and using the example, I've received an error with authentication: digikey.oauth.oauth2 - WARNING: Token storage does not exist or malformed, creating new.

The oauth2 authentication in the browser is giving me error "400 - Unknown or invalid client_id".

Everything seems to be in order with client id and client secret, not sure why I'm getting this error

Having this problem as well.

peeter123 commented 4 years ago

I have pushed improved oauth debug logging to digikey-api-v3, please make sure you check in the logging you have the correct urls / id / secret.

peeter123 commented 3 years ago

Closed due to inactivity