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

Classes

class  ExampleAuthProvider
 
class  ExampleLoginFlow
 
class  InvalidAuthError
 

Variables

 CONFIG_SCHEMA
 
 USER_SCHEMA
 

Detailed Description

Example auth provider.

Variable Documentation

◆ CONFIG_SCHEMA

homeassistant.auth.providers.insecure_example.CONFIG_SCHEMA
Initial value:
1 = AUTH_PROVIDER_SCHEMA.extend(
2  {vol.Required("users"): [USER_SCHEMA]}, extra=vol.PREVENT_EXTRA
3 )

Definition at line 26 of file insecure_example.py.

◆ USER_SCHEMA

homeassistant.auth.providers.insecure_example.USER_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required("username"): str,
4  vol.Required("password"): str,
5  vol.Optional("name"): str,
6  }
7 )

Definition at line 17 of file insecure_example.py.