Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to make pygooglevoice use oAuth authentication? #54

Open
citbr opened this issue May 19, 2018 · 3 comments
Open

Possible to make pygooglevoice use oAuth authentication? #54

citbr opened this issue May 19, 2018 · 3 comments

Comments

@citbr
Copy link

citbr commented May 19, 2018

I only ask this because I see where some FreePBX users have got oAuth working with Google Voice (http://www.dslreports.com/forum/r30983990-Asterisk-OAuth-2-0-Support-for-Asterisk-13-or-Asterisk-14) and it seems to me that using oAuth with pygooglevoice might have some advantages, including

  • no more times where it suddenly stops working because Google changes the authentication method
  • no more Google security alerts in your email every single time pygooglevoice logs in
  • no more need to leave access to less secure apps turned on in your Google account

I'm not a programmer and I don't know Python at all, so I have no idea if this would be something relatively easy to implement, or a very difficult or impossible thing to do. But if it's easy, it might be worth the effort, particularly if you find all the damn yelping from Google with their security alert emails as annoying as I do.

@chris001
Copy link

  • FreePBX uses OAUTH2 protocol to log into "google talk" with the asterisk motif channel driver which uses the XMPP google jingle protocol to communicate with "google talk" servers to make/receive two way audio phone calls.
  • This pygogglevoice logs into the gvoice web app as if it were a regular user by using https protocol, and since it's acting as if it were a regular user, the gvoice web app expects the real username and password for your g account in order to login successfully.
  • You can experiment with the oauth2 playground if you really want to explore every possibility to hope to find a way to login with oauth2. You might find the right app in there somewhere, it's a huge list of g apps. If you do find a voice or chat or jingle or talk app in there which works to login over oauth2 protocol, then it might possibly work for login in pygooglevoice, but it's an unlikely long shot. The pygv app would need to try to login using google jabber protocol to the google talk server with ouath2, then take the oauth2 login session ID it got from the gtalk jabber service on port 5422, and attempt login using that session ID, on the gvoice server https web port 443, this is super unlikely to work.

@chris001
Copy link

Update: It looks like login with App Password just might be possible.
EspaceNetworks#8

@citbr
Copy link
Author

citbr commented May 31, 2018

App Password isn't at all helpful if you have to enable 2FA to get one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants