aeroniemi / circlehome

A HomeAssistant device controller built into a cute 1.28" dial
https://aeroniemi.github.io/circlehome/
MIT License
0 stars 0 forks source link

Add OAuth authentication with home assistant #58

Closed aeroniemi closed 3 months ago

aeroniemi commented 4 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

aeroniemi commented 3 months ago

The basic authentication workflow now works! Here's a list of things that needs to happen to get things finished: