Support for group into command_line auth provider (#27355)

* Support for group into command_line auth provider

* Tiny tweak

---------

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Hejki 2023-11-24 13:21:12 +01:00 committed by GitHub
parent f6dede9c78
commit a3b30df07f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.