Closed aeroniemi closed 3 months ago
It'd be nice After install and improv, open web page where you set the home assistant url, then a button to auth
Go to http://homeassistant.local:8123/auth/authorize?client_id=[circle_ip]&redirect_uri=[circle_ip]/auth_callback
redirects to https://[redirect_url]?code=[auth_id]&storeToken=true
Then, when we want to use send a http request: get token
if token already exists check it hasn't expired if it has get new else just ship that
The basic authentication workflow now works! Here's a list of things that needs to happen to get things finished:
It'd be nice After install and improv, open web page where you set the home assistant url, then a button to auth
Go to http://homeassistant.local:8123/auth/authorize?client_id=[circle_ip]&redirect_uri=[circle_ip]/auth_callback
redirects to https://[redirect_url]?code=[auth_id]&storeToken=true
Then, when we want to use send a http request: get token
if token already exists check it hasn't expired if it has get new else just ship that