Auth provider validating credentials by calling a command.
Definition at line 41 of file command_line.py.
◆ __init__()
| None homeassistant.auth.providers.command_line.CommandLineAuthProvider.__init__ |
( |
|
self, |
|
|
*Any |
args, |
|
|
**Any |
kwargs |
|
) |
| |
Extend parent's __init__.
Adds self._user_meta dictionary to hold the user-specific
attributes provided by external programs.
Definition at line 53 of file command_line.py.
◆ async_get_or_create_credentials()
| Credentials homeassistant.auth.providers.command_line.CommandLineAuthProvider.async_get_or_create_credentials |
( |
|
self, |
|
|
Mapping[str, str]
|
flow_result |
|
) |
| |
◆ async_login_flow()
| LoginFlow homeassistant.auth.providers.command_line.CommandLineAuthProvider.async_login_flow |
( |
|
self, |
|
|
AuthFlowContext | None |
context |
|
) |
| |
◆ async_user_meta_for_credentials()
| UserMeta homeassistant.auth.providers.command_line.CommandLineAuthProvider.async_user_meta_for_credentials |
( |
|
self, |
|
|
Credentials
|
credentials |
|
) |
| |
Return extra user metadata for credentials.
Currently, supports name, group and local_only.
Definition at line 120 of file command_line.py.
◆ async_validate_login()
| None homeassistant.auth.providers.command_line.CommandLineAuthProvider.async_validate_login |
( |
|
self, |
|
|
str |
username, |
|
|
str |
password |
|
) |
| |
◆ ALLOWED_META_KEYS
| tuple homeassistant.auth.providers.command_line.CommandLineAuthProvider.ALLOWED_META_KEYS |
|
static |
Initial value:= (
"name",
"group",
"local_only",
)
Definition at line 47 of file command_line.py.
◆ DEFAULT_TITLE
| string homeassistant.auth.providers.command_line.CommandLineAuthProvider.DEFAULT_TITLE = "Command Line Authentication" |
|
static |
The documentation for this class was generated from the following file: