Sign-in without a button on Kiosk Satellite tablets.
Kiosk Satellite gives custom pages its HA connection
(window.kioskSatellite.ha, "Share Home Assistant connection" on) but
never the token. So the login page proves who it is through HA itself:
it calls the no-op persistent_notification.dismiss with
notification_id: "ha_auth_sign_in_<nonce>", the nonce being in its
session. HA fires call_service with the caller's context.user_id;
HaAuth.HA.Events hands that to dismissed/2, and the /auth/kiosk
request picks it up with await/2.
The user id comes from HA, not the page, so a page can only sign in as the HA user whose credential made the call. Entries live 60 seconds and are taken once.
Summary
Functions
The HA user id that confirmed nonce, waiting up to timeout ms.
Returns a specification to start this module under a supervisor.
user_id dismissed notification id: a sign-in when it carries our prefix.
Functions
The HA user id that confirmed nonce, waiting up to timeout ms.
Returns a specification to start this module under a supervisor.
See Supervisor.
user_id dismissed notification id: a sign-in when it carries our prefix.