node-red-contrib-alexa-remote2 icon indicating copy to clipboard operation
node-red-contrib-alexa-remote2 copied to clipboard

Auth last only until change/boot

Open RoberTo1111 opened this issue 4 years ago • 9 comments

Hello,

I have the problem that I have to authenticate after every change. The authentication do not last some days. If I reboot or deploy I have to authenticate. Is this a feature or a bug?

Regards

RoberTo

RoberTo1111 avatar Dec 10 '20 12:12 RoberTo1111

Make sure you’ve entered a file path. The created file persists your auth token.

zkniebel avatar Dec 20 '20 22:12 zkniebel

I am having the same issues. Have you found a solution for this? This is the same issue as #159

vitodcampanelli avatar Dec 28 '20 16:12 vitodcampanelli

Solved by setting file path to 'auth'

Kofl avatar Jan 01 '21 20:01 Kofl

Make sure you’ve entered a file path. The created file persists your auth token.

Same issue. I set the path but it will not work.

RoberTo1111 avatar Jan 03 '21 11:01 RoberTo1111

Make sure you’ve entered a file path. The created file persists your auth token.

Same issue. I set the path but it will not work.

The latest suggestion from https://github.com/586837r/node-red-contrib-alexa-remote2/issues/159 maybe works for you?

Kofl avatar Jan 03 '21 16:01 Kofl

Solved by setting file path to 'auth'

I'm using RodeRed in a docker container with one volume mapped to /data - I have '/data' in the account node file path but still the cookie does not persist. Have I got the path correct?

Edit, now fixed. I'm running NR in a docker container so needed to add an empty cookie.txt file to the /data volume, and added /data/cookie.txt to the account setup node. You do need the file name as well as the path for it to work.

dougle03 avatar Jan 18 '21 07:01 dougle03

Works now.

My fault. It were the rights on the file that were wrong. I checked the folder but forget to check the right for the created file.

THX to all for helping.

Kindly Regards RoberTo

RoberTo1111 avatar Jan 18 '21 10:01 RoberTo1111

For me, confirmed using Docker-compose with volumes mapped - ./volumes/nodered/data:/data The path needs to be set or presumably it cannot decide where to put it. My file and path entered on node as /data/amazonauthfile

After successful authorisation the specified file can be seen in assigned path. It should not need to be created, node should do that.

chapelhillmccl avatar Jan 21 '21 20:01 chapelhillmccl

This is the solution for nodered running under Home Assistant :

my path on the server is this: /usr/share/hassio/homeassistant/node-red

but in the config you need this: /config/node-red/amazon.txt

credit: https://community.home-assistant.io/t/alexa-remote2-authentication-file-path/267344/2?

You’d need to change the path based on whatever system you’re using.

This now survives a full system reboot without needing to sign in again.

gaussey avatar May 24 '21 12:05 gaussey