-
Notifications
You must be signed in to change notification settings - Fork 257
Webclient.login() not working with 2fa #603
Comments
Ah, yeah, webclient auth predates 2fa support. I don't think anyone's looked into moving it to something more reasonable. If you want to play with it, you could probably take your auth cookies from a logged in session in the browser and then hardcode them into https:/simon-weber/gmusicapi/blob/develop/gmusicapi/session.py. Alternatively, you could probably get away with scripting something based on a network tab copy-as-curl if the requests are still relatively straightforward. |
Is adding a optional parameter to login that represents the 2fa code hard to do? I can have the one time password before login because I use the Google Authenticator app. I would greatly appreciate it if you help me with this. I tried a fix on this issue, specifically askvictor's answer but I couldn't get it to work. |
I don't think it'd be too tough, but I don't personally plan to do more work on the webclient since it's so hard to maintain. I'm happy to give ideas or merge PRs. |
I can' t seem to get Webclient.login() to work. I have a account with 2fa auth. I tried with an app password or my regular password.
Mobile client and Music manager work without issue.
I am using the webclient because it has report_incorrect_match and the other clietns don't have that.
Is there a workaround in the meantime?
Thanks.
The text was updated successfully, but these errors were encountered: