Skip to content

Instantly share code, notes, and snippets.

@CyrilP
CyrilP / get_credentials.py
Created May 6, 2023 14:04
Get tydom password
@staticmethod
async def async_get_credentials(
session: ClientSession, email: str, password: str, macaddress: str
):
"""get tydom credentials from Delta Dore"""
try:
async with async_timeout.timeout(10):
response = await session.request(
method="GET",
url="https://deltadoreadb2ciot.b2clogin.com/deltadoreadb2ciot.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=B2C_1_AccountProviderROPC_SignIn",