From a3b30df07f828ba72292aa9c69d23d252891e24c Mon Sep 17 00:00:00 2001 From: Hejki <32815+Hejki@users.noreply.github.com> Date: Fri, 24 Nov 2023 13:21:12 +0100 Subject: [PATCH] Support for group into command_line auth provider (#27355) * Support for group into command_line auth provider * Tiny tweak --------- Co-authored-by: Franck Nijhof --- source/_docs/authentication/providers.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_docs/authentication/providers.markdown b/source/_docs/authentication/providers.markdown index d6ef3e71590..7372f35d4da 100644 --- a/source/_docs/authentication/providers.markdown +++ b/source/_docs/authentication/providers.markdown @@ -175,11 +175,15 @@ When `meta: true` is set in the auth provider's configuration, your command can ```txt name = John Doe +group = system-users +local_only = true ``` Leading and trailing whitespace, as well as lines starting with `#` are ignored. The following variables are supported. More may be added in the future. - `name`: The real name of the user to be displayed in their profile. +- `group`: The user group uses the value `system-admin` for administrator (this is the default) or `system-users` for regular users. +- `local_only`: The user can only log in from the local network if you set the value to `true`. If you do not define this variable, the user can log in from anywhere. Stderr is not read at all and just passed through to that of the Home Assistant process, hence you can use it for status messages or suchlike.