philippelt / netatmo-api-python

Netatmo connect API python client (for Netatmo information, see https://dev.netatmo.com)
GNU General Public License v3.0
193 stars 121 forks source link

Authentication request rejected #59

Closed bergerbyte closed 1 year ago

bergerbyte commented 1 year ago

Hello,

Firstly, thank you for your assistance.

I've been facing challenges with the authentication process. Every time I attempt to authenticate, I receive the error "Authentication request rejected." I've set up my configuration using the .netatmo.credentials method.

I've created the Refresh-Token through Netatmo, but on a reload, it's no longer visible. Oddly, when I recreate it, I get the same token value. Is this the intended behavior?

Below is the error I encounter:

Bildschirmfoto 2023-07-21 um 17 24 19

Your guidance would be much appreciated.

rvk01 commented 1 year ago

Can you try this in a python script, just to rule out permission errors on your cred. file.

import lnetatmo

CLIENT_ID = '1234'
CLIENT_SECRET = '123abc'
REFRESH_TOKEN = 'xyz|abc'

authorization = lnetatmo.ClientAuth(
        clientId=CLIENT_ID,
        clientSecret=CLIENT_SECRET,
        refreshToken=REFRESH_TOKEN,
        )
bergerbyte commented 1 year ago

Ok, problem found. The package was still on version 2.1. Thanks for the help.