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

Classes

class  AuthFlowContext
 
class  Credentials
 
class  Group
 
class  RefreshToken
 
class  User
 
class  UserMeta
 

Functions

Any _handle_permissions_change (User self, Attribute user_attr, Any new)
 

Variables

 AuthFlowResult = FlowResult[AuthFlowContext, tuple[str, str]]
 
string TOKEN_TYPE_LONG_LIVED_ACCESS_TOKEN = "long_lived_access_token"
 
string TOKEN_TYPE_NORMAL = "normal"
 
string TOKEN_TYPE_SYSTEM = "system"
 

Detailed Description

Auth models.

Function Documentation

◆ _handle_permissions_change()

Any homeassistant.auth.models._handle_permissions_change ( User  self,
Attribute  user_attr,
Any  new 
)
private
Handle a change to a permissions.

Definition at line 49 of file models.py.

Variable Documentation

◆ AuthFlowResult

homeassistant.auth.models.AuthFlowResult = FlowResult[AuthFlowContext, tuple[str, str]]

Definition at line 36 of file models.py.

◆ TOKEN_TYPE_LONG_LIVED_ACCESS_TOKEN

string homeassistant.auth.models.TOKEN_TYPE_LONG_LIVED_ACCESS_TOKEN = "long_lived_access_token"

Definition at line 25 of file models.py.

◆ TOKEN_TYPE_NORMAL

string homeassistant.auth.models.TOKEN_TYPE_NORMAL = "normal"

Definition at line 23 of file models.py.

◆ TOKEN_TYPE_SYSTEM

string homeassistant.auth.models.TOKEN_TYPE_SYSTEM = "system"

Definition at line 24 of file models.py.