fkalis / bash-onedrive-upload

Upload files to onedrive via linux command line
MIT License
308 stars 72 forks source link

'grant_type' parameter must be included #69

Open sharkpunch5 opened 6 years ago

sharkpunch5 commented 6 years ago

When I try to authorize I get the following error after I input the code parameter onedrive-authorize script

Something went wrong, here is the API response: {"error":"invalid_request","error_description":"The provided request must include a 'grant_type' input parameter."}

deankramer commented 6 years ago

I believe there are a few issues with the OAuth calls, as I had the same trouble. I believe the issue is around that while client_secret is an optional parameter, it claims it should not be sent from a public client. After doing the OAuth myself, I made fixes on my fork: https://github.com/deankramer/bash-onedrive-upload

Happy for anyone to pull my changes.

faridcher commented 6 years ago

Same problem here. @deankramer maybe create a PR to this repo?