-
-
Notifications
You must be signed in to change notification settings - Fork 585
Description
Describe the bug
Browser completes two factor authentication, unable to synchronize in miio.
I have completed the secondary authentication in the URL through Firefox browser, but when I restart the Miio login process, it still prompts for secondary authentication. Additionally, I believe that this secondary authentication cannot be added to the login process as there is a human-machine verification process involved.
Try to use 'backup.ab' from Android phone for login micloud but also failed.
Logs:
miio-extract-tokens backup.ab
Traceback (most recent call last):
File "c:\users\admin\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\admin\appdata\local\programs\python\python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\Scripts\miio-extract-tokens.exe_main.py", line 7, in
File "c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
File "c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\miio\extract_tokens.py", line 221, in main
tar = f.read_data(password)
File "c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\android_backup\android_backup.py", line 344, in read_data
fp = self._decrypt(fp, password=password)
File "c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\android_backup\android_backup.py", line 162, in _decrypt
raise ValueError(
ValueError: Password need to be provided to extract encrypted archives
Version information (please complete the following information):
python-miio 0.5.12
micloud 0.6
Device information:
PC: windows10+python3.8
ubuntu20.04+python3.8
To Reproduce
Steps to reproduce the behavior:
1.Login with regular account(CN)
Expected behavior
login successful
Console output
DEBUG:urllib3.connectionpool:https://account.xiaomi.com:443 "POST /pass/serviceLoginAuth2 HTTP/1.1" 200 None
DEBUG:root:Xiaomi login step 2 response code: 200
DEBUG:root:Xiaomi login step 2 response: {"notificationUrl": "*****", "result": "ok", "code": 0, "captchaUrl": null, "description": "\u6210\u529f", "location": "", "securityStatus": 16, "pwd": 0, "child": 0, "desc": "\u6210\u529f"}
If you need more info please tell me. Thanks