Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation Class Reference
Inheritance diagram for homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation:
[legend]
Collaboration diagram for homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation:
[legend]

Public Member Functions

None __init__ (self, HomeAssistant hass, str client_id, str client_secret, str name, str tenant_id, str|None issuer=None)
 
dict async_resolve_external_data (self, Any external_data)
 
dict extra_authorize_data (self)
 
str name (self)
 

Public Attributes

 issuer
 
 tenant_id
 

Private Member Functions

dict _async_refresh_token (self, dict token)
 
dict _token_request (self, dict data)
 

Private Attributes

 _name
 

Detailed Description

Local OAuth2 implementation for Toon.

Definition at line 52 of file oauth2.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation.__init__ (   self,
HomeAssistant  hass,
str  client_id,
str  client_secret,
str  name,
str  tenant_id,
str | None   issuer = None 
)
Local Toon Oauth Implementation.

Definition at line 55 of file oauth2.py.

Member Function Documentation

◆ _async_refresh_token()

dict homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation._async_refresh_token (   self,
dict  token 
)
private
Refresh tokens.

Definition at line 107 of file oauth2.py.

◆ _token_request()

dict homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation._token_request (   self,
dict  data 
)
private
Make a token request.

Definition at line 119 of file oauth2.py.

◆ async_resolve_external_data()

dict homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation.async_resolve_external_data (   self,
Any  external_data 
)
Initialize local Toon auth implementation.

Definition at line 93 of file oauth2.py.

◆ extra_authorize_data()

dict homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation.extra_authorize_data (   self)
Extra data that needs to be appended to the authorize url.

Definition at line 84 of file oauth2.py.

◆ name()

str homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation.name (   self)
Name of the implementation.

Definition at line 79 of file oauth2.py.

Member Data Documentation

◆ _name

homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation._name
private

Definition at line 65 of file oauth2.py.

◆ issuer

homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation.issuer

Definition at line 67 of file oauth2.py.

◆ tenant_id

homeassistant.components.toon.oauth2.ToonLocalOAuth2Implementation.tenant_id

Definition at line 66 of file oauth2.py.


The documentation for this class was generated from the following file: