voorkant / voorkant-core

https://voorkant.org/
MIT License
2 stars 3 forks source link

register.sh should create a long-lived auth access token #6

Closed cyclops1982 closed 8 months ago

cyclops1982 commented 8 months ago

In register.sh we currently use the Oauth token. This token is short lived (probably 3600secs). We should let register add a long lived access token. These tokens are valid for 10 years. That's virtually forever in our world short-lived docker container.

The long lived token can only be created via the websocket. We can't really use curl to make the 'call' towards the websocket. The current idea is that we create/have a command line tool that allows us to do these things.

Habbie commented 8 months ago

@cyclops1982 added client-cli ha-get-token. What's left is to work that into the scripts that boot a HA in docker I think :)

Habbie commented 8 months ago

all done!