Home Assistant Unofficial Reference 2024.12.1
homeassistant.auth.providers Namespace Reference

Namespaces

 command_line
 
 homeassistant
 
 insecure_example
 
 trusted_networks
 

Classes

class  AuthProvider
 
class  LoginFlow
 

Functions

AuthProvider auth_provider_from_config (HomeAssistant hass, AuthStore store, dict[str, Any] config)
 
types.ModuleType load_auth_provider_module (HomeAssistant hass, str provider)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 AUTH_PROVIDER_SCHEMA
 

Detailed Description

Auth providers for Home Assistant.

Function Documentation

◆ auth_provider_from_config()

AuthProvider homeassistant.auth.providers.auth_provider_from_config ( HomeAssistant  hass,
AuthStore  store,
dict[str, Any]   config 
)
Initialize an auth provider from a config.

Definition at line 144 of file __init__.py.

◆ load_auth_provider_module()

types.ModuleType homeassistant.auth.providers.load_auth_provider_module ( HomeAssistant  hass,
str   provider 
)
Load an auth provider.

Definition at line 164 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.auth.providers._LOGGER = logging.getLogger(__name__)
private

Definition at line 34 of file __init__.py.

◆ AUTH_PROVIDER_SCHEMA

homeassistant.auth.providers.AUTH_PROVIDER_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_TYPE): str,
4  vol.Optional(CONF_NAME): str,
5  # Specify ID if you have two auth providers for same type.
6  vol.Optional(CONF_ID): str,
7  },
8  extra=vol.ALLOW_EXTRA,
9 )

Definition at line 39 of file __init__.py.