Oauth2 Required input missing

I’m attempting to build and application utilizing oauth2 using WeatherFlow Tempest OAuth 2.0 Support. I am able to get Step 2 of the oauth2 setup, but when I POST to the endpoint to get the access key, I receive

{"error":"invalid_request","error_description":"Required input missing","status":{"status_code":2,"status_message":"Required input missing"},"errors":[{"message":"Required input missing"}]}

This is the curl command I use.

curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' "https://swd.weatherflow.com/id/oauth2/token?grant_type=authorization_code&code=CODE_HERE&client_secret=CODE_HERE"

I get the same output regardless of what I POST.

Any help you could give would be greatly appreciated.

I got it working. Turns out client_id also has to be supplied in step 2, but isn’t mentioned in the docs.

2 Likes

Good catch @ryanmkirk. Glad you got it working and I updated the documentation.

1 Like