-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client credentials grant type deprecated #81
Comments
Hi! var netatmo = require('netatmo'); Thanks alot! |
This is how I call it:
It's probably the scope that is missing. I only use read_station, so adjust this as needed. |
Looking into it a bit, the fork skips the authenticate function in favor of authenticate_refresh. authenticate() does some variable initialization like:
|
Thanks alot for your quick answer! It worked! One of the main issues were that I needed to login to https://dev.netatmo.com/apps/ for the specific app and then use their token generator and generate a Refresh Token. Had a little hard time finding that out... Thanks again! |
Sorry I totally overlooked your refresh token question. Glad you got it working. |
" Authenticate error: unauthorized_client"
It looks like Netatmo has finaly disabled "Client credentials grant type" which was slated for October 2022. (https://dev.netatmo.com/apidocumentation/oauth)
One can generate an app with tokens on the netatmo dev site: https://dev.netatmo.com/apps/createanapp and I made a dirty fork to use this refresh token to request a new authorization_token:
https://github.com/arenddeboer/netatmo/blob/main/netatmo.js
I do wonder how long the refresh token generated on the netatmo dev site is valid, so this solution may not be workable if it expires.
The text was updated successfully, but these errors were encountered: