Netatmo API - Authentication update - Security update

Authentication update

Dear Netatmo developer,

As of today, when you refresh an Access Token using the associated endpoint https://api.netatmo.com/oauth2/token, Netatmo servers respond with a couple of tokens : an Access Token and a Refresh Token.

If the previous Access Token is still valid, the newly returned access token is identical but its expiration time is extended for 3 hours.

In any case, the refresh token is not renewed.
Starting from the 17/04/2023, this behavior will change to to be compliant with the recommendations of the RFC of the OAuth2 Authorization Framework (section 10.4) and improving the security of the data of our users.

When refreshing tokens, Access Token and Refresh Token will be automatically renewed and former tokens invalidated.
What does it means for me ?

If you were already updating the tokens provided when refreshing your tokens, this change will not impact you.

If you do not update the refresh token when refreshing your Access Token, your users will be disconnected after 3 hours as the former tokens will become invalidated.

To fix it, you need to update the tokens as soon as you get the newly generated ones.
Sincerely,

Legrand - Netatmo - Bticino

Please do not reply to this email. Replies to this email message will not be read or responded to. For any further information, please contact our Support Team.

Legrand - Netatmo - Bticino. All rights reserved © 2023

2 « J'aime »

Moi aussi je viens de recevoir cet email. Quelle incidence sur le plugin opendata que j’utilise ?

Hello
Idem pour moi.
Quelle incidence en effet sur data et aussi les plugins officiels?

Hello,

Pareil pour moi.
Et par la même occasion, je reçoit de nouveau des mail en boucle de la part de Netatmo comme quoi un appareil s’est connecté (l’histoire du cookie qui est réutilisé toutes les 3h).
Par contre impossible de désactiver la notif sur le compte Netatmo, cela avait fonctionné, mais plus maintenant…

1 « J'aime »

Bonjour à tous,
Également concerné par ces mails tout les 3h depuis peu…
Mes paramètres « Changer mes paramètres mail » sous my.netatmo se remettent à On quotidiennement… Auriez-vous une solution svp🙏?

1 « J'aime »

Bonsoir, pareil pour moi… Incident ouvert chez Netatmo sans réponse pour l’instant. C’est assez pénible.

Bonjour.
Je viens de recevoir une réponse du support :
« Il n’est plus possible de désactiver cette alerte pour des raisons de sécurité, vous avez dû recevoir un email informatif (il y a un moment déjà…). Votre application tierce fait un appel « abusif » à nos API. Vous devez donc mettre à jour vos applications tierces pour résoudre cela. »

1 « J'aime »

Netatmo API - Security update

Security image expiration

Dear Netatmo developer,

As of today, the images you get from the API, such as snapshots, vignettes or even profile images, do not expire.

For security reasons, the retrieved URLs will now expire.
Starting from the 09/05/2023, you will receive, along with the image URLs, an ‹ expire_at › field. The expiration time will be set at five minutes when rolled out but keep in mind that this value can change.

As a result, you must take into account the ‹ expires_at › field that you will receive in the payload.
What does it means for you ?

Impacted API endpoint are :

  • /homesdata when retrieving the image of each person
  • /getevents when retrieving snapshots and vignettes

If you do not download immediately the image URLs of these two API endpoints, you shall modify your code to handle the expiration time. Once the URLs are expired, and if you try to download the images again, you will receive a 404 HTTP error. You have to make a new API call to retrieve new URLs.
Sincerely,

Legrand - Netatmo - Bticino

Please do not reply to this email. Replies to this email message will not be read or responded to. For any further information, please contact our Support Team.

Legrand - Netatmo - Bticino. All rights reserved © 2023

1 « J'aime »

Moi aussi je viens de recevoir ce mail ???
Quelles sont les incidences ?

C’est écrit juste au dessus et dans le mail que vous avez reçu il paraît, plus qu’à le lire

hello
du coup le superbe plugin Netatmo OpenData de @jim005 n est plus opérationnel…un update est il prévu ?

Hello,

Question déjà posé là

Oui, c’est prévu. Mais soyez patient :slight_smile:

10 « J'aime »

Juste pour confirmer la version 1.3 du plugin - disponible pour tous - corrige ce souci.

1 « J'aime »

Je pense que l’on peut cloturer ce topic au vu des modifications sur les plugins tiers + nouveau plugin officiel en remplacement des anciens plugins.

@iPapy : qu’en penses-tu ?