Hello.
According to the documentation on dev.netatmo.com, the grant request should not present a scope entry but it does.
The problem is that this entry is an array, while according to the RFC (https://tools.ietf.org/html/rfc6749#section-3.3), this should be a simple string.
Any chance to correct that ?
OAuth scope field
Re: OAuth scope field
Hello,
Scopes are in a string, not an array. So you can declare them this way : read_station read_thermostat write_thermostat
Have a good day,
Leslie - Community Manager
Scopes are in a string, not an array. So you can declare them this way : read_station read_thermostat write_thermostat
Have a good day,
Leslie - Community Manager
Re: OAuth scope field
Sorry, my mistake, I was talking of the answer to the grand request, that contains an array while it should be a string.
Example of answer :
{"access_token":"51c55d0418xxxxxxxxfa","refresh_token":"51c55xxxxxxxxeb3b","scope":["read_station","read_homecoach","read_presence","access_presence","write_camera","access_camera","read_thermostat","write_thermostat","read_smokedetector","read_camera"],"expires_in":10800,"expire_in":10800}
Example of answer :
{"access_token":"51c55d0418xxxxxxxxfa","refresh_token":"51c55xxxxxxxxeb3b","scope":["read_station","read_homecoach","read_presence","access_presence","write_camera","access_camera","read_thermostat","write_thermostat","read_smokedetector","read_camera"],"expires_in":10800,"expire_in":10800}
Re: OAuth scope field
Any progress on this question ?
Re: OAuth scope field
Hello,
It's not something planned for the moment, but teams took the point and will think about it
Have a good day,
Leslie - Community Manager
It's not something planned for the moment, but teams took the point and will think about it
Have a good day,
Leslie - Community Manager