HaAuth.HA.Users (ha_auth v0.1.0)

Copy Markdown View Source

HA's people (config/auth/list, admin-only and websocket-only, so it needs an admin :token). Used to name the user a kiosk signs in as. Swap in a stub with config :ha_auth, :users_source, Mod.

Summary

Functions

The active user id as a session map %{"id", "name", "admin"}.

The configured implementation (this module unless stubbed).

{:ok, [%{"id", "name", "admin", "active"}]}, without system users.

Functions

find(id)

The active user id as a session map %{"id", "name", "admin"}.

impl()

The configured implementation (this module unless stubbed).

users()

{:ok, [%{"id", "name", "admin", "active"}]}, without system users.