OAuth scope field

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
clinique
Posts: 7
Joined: 17 Oct 2013, 16:05

OAuth scope field

Post by clinique »

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 ?
Leslie
Posts: 112
Joined: 12 Feb 2020, 11:07

Re: OAuth scope field

Post by Leslie »

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
clinique
Posts: 7
Joined: 17 Oct 2013, 16:05

Re: OAuth scope field

Post by clinique »

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}
clinique
Posts: 7
Joined: 17 Oct 2013, 16:05

Re: OAuth scope field

Post by clinique »

No answer ?
clinique
Posts: 7
Joined: 17 Oct 2013, 16:05

Re: OAuth scope field

Post by clinique »

Any progress on this question ?
Leslie
Posts: 112
Joined: 12 Feb 2020, 11:07

Re: OAuth scope field

Post by Leslie »

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
Post Reply

Return to “Netatmo API”