nikkow / node-red-contrib-tahoma

Node-RED module to control a Somfy Tahoma box (Roller shutters...). Used for home automation flows.
Apache License 2.0
19 stars 11 forks source link

Error : The redirect URI provided does not match registered URI #24

Closed jemmail closed 4 years ago

jemmail commented 4 years ago

many thanks for your Node 👍

unfortunately, I always get an error when I try to configure it.. in the somfy dev page, I have successfully created my app and set the call back to

http://127.0.0.1:1880/somfy/callback

but when a try to link NodeRED to tahoma I always get

{"error":"redirect_uri_mismatch","error_description":"{"error":"redirect_uri_mismatch","error_description":"The redirect URI provided does not match registered URI(s)."}(s)."}

Should you not add a "Callback URI" field in the configuration node page so you can pass it during the call and thus always match ?

thanks and keep safe

jemmail commented 4 years ago

Reply to myself : I took a look in you code i saw how you did the call:

const CALLBACK = window.location.protocol + '//'+ window.location.host + window.location.pathname + 'somfy/callback';

so, I change my callback settings with my intern IP address 192.168.1.xxx:1880 and it works...

Many thanks