Home Assistant Unofficial Reference 2024.12.1
config_entry_oauth2_flow.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.helpers.config_entry_oauth2_flow.AbstractOAuth2FlowHandler
 
class  homeassistant.helpers.config_entry_oauth2_flow.AbstractOAuth2Implementation
 
class  homeassistant.helpers.config_entry_oauth2_flow.LocalOAuth2Implementation
 
class  homeassistant.helpers.config_entry_oauth2_flow.OAuth2AuthorizeCallbackView
 
class  homeassistant.helpers.config_entry_oauth2_flow.OAuth2Session
 

Namespaces

 homeassistant.helpers.config_entry_oauth2_flow
 

Functions

dict[str, Any]|None homeassistant.helpers.config_entry_oauth2_flow._decode_jwt (HomeAssistant hass, str encoded)
 
str homeassistant.helpers.config_entry_oauth2_flow._encode_jwt (HomeAssistant hass, dict data)
 
None homeassistant.helpers.config_entry_oauth2_flow.async_add_implementation_provider (HomeAssistant hass, str provider_domain, Callable[[HomeAssistant, str], Awaitable[list[AbstractOAuth2Implementation]]] async_provide_implementation)
 
AbstractOAuth2Implementation homeassistant.helpers.config_entry_oauth2_flow.async_get_config_entry_implementation (HomeAssistant hass, config_entries.ConfigEntry config_entry)
 
dict[str, AbstractOAuth2Implementation] homeassistant.helpers.config_entry_oauth2_flow.async_get_implementations (HomeAssistant hass, str domain)
 
client.ClientResponse homeassistant.helpers.config_entry_oauth2_flow.async_oauth2_request (HomeAssistant hass, dict token, str method, str url, **Any kwargs)
 
None homeassistant.helpers.config_entry_oauth2_flow.async_register_implementation (HomeAssistant hass, str domain, AbstractOAuth2Implementation implementation)
 

Variables

 homeassistant.helpers.config_entry_oauth2_flow._LOGGER = logging.getLogger(__name__)
 
string homeassistant.helpers.config_entry_oauth2_flow.AUTH_CALLBACK_PATH = "/auth/external/callback"
 
int homeassistant.helpers.config_entry_oauth2_flow.CLOCK_OUT_OF_SYNC_MAX_SEC = 20
 
string homeassistant.helpers.config_entry_oauth2_flow.DATA_JWT_SECRET = "oauth2_jwt_secret"
 
string homeassistant.helpers.config_entry_oauth2_flow.HEADER_FRONTEND_BASE = "HA-Frontend-Base"
 
string homeassistant.helpers.config_entry_oauth2_flow.MY_AUTH_CALLBACK_PATH = "https://my.home-assistant.io/redirect/oauth"
 
int homeassistant.helpers.config_entry_oauth2_flow.OAUTH_AUTHORIZE_URL_TIMEOUT_SEC = 30
 
int homeassistant.helpers.config_entry_oauth2_flow.OAUTH_TOKEN_TIMEOUT_SEC = 30