New authentication process #205
Replies: 4 comments 1 reply
-
I do agree |
Beta Was this translation helpful? Give feedback.
-
@chemelli74 I did a PR because I think |
Beta Was this translation helpful? Give feedback.
-
@chemelli74 @rokam
|
Beta Was this translation helpful? Give feedback.
-
yes, the process is control in integration side, but @chemelli74 may start rework with config_flow, I'm not sure, so just want to share these important info to prevent addition effect. |
Beta Was this translation helpful? Give feedback.
-
Currently one of the biggest issue is the local authentication towards the device.
We have a non linear approach to login to cloud and retrieve the needed data (token,keys,subtype).
My idea is to clean this up in a linear approach thus making easier to fix the wrong steps.
Rework current logic in new functions:
async_get_default_keys(): get the default hardcoded keys
async_login_preset_account(): login to cloud using hardcoded account credentials.
async_login_username(): login to cloud using specified user credentials.
async_get_cloud_keys(): get method 1 and method 2 keys from cloud login
async_get_cloud_subtype(): get device subtype from cloud login
async_device_authentication(): use token/keys to check if they work for local authentication to the device.
With those the authentication process could be something like:
Beta Was this translation helpful? Give feedback.
All reactions