HaAuth.Config (ha_auth v0.1.0)

Copy Markdown View Source

Settings, from config :ha_auth, ... (usually in config/runtime.exs):

  • :ha_url - Home Assistant as the server reaches it (required)
  • :auth_url - where browsers go for HA's login page (default :ha_url)
  • :token - long-lived HA token. Only needed for Kiosk Satellite sign-in, and then it must belong to an HA admin
  • :verify_ssl - check HA's certificate (default false: LAN HA is usually self-signed)
  • :allowed_users - non-admin HA user ids that may sign in (default [])
  • :kiosk - offer Kiosk Satellite sign-in (default false)
  • :after_sign_in_path - where to go when no page was asked for (default "/")
  • :app_name - heading on the login page (default "Sign in")
  • :auth_disabled - skip sign-in, everyone is a dev admin (dev only!)

Summary

Functions

after_sign_in_path()

allowed_users()

app_name()

auth_disabled?()

auth_url()

get(key, default \\ nil)

ha_url()

kiosk?()

kiosk_timeout()

ssl_options()

token()

token?()

websocket_url()