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

Change 'User-Agent' or allow customization of it #32

Open
rtaft opened this issue Nov 3, 2016 · 7 comments
Open

Change 'User-Agent' or allow customization of it #32

rtaft opened this issue Nov 3, 2016 · 7 comments

Comments

@rtaft
Copy link

rtaft commented Nov 3, 2016

The 'User-Agent' content is set to PyGoogleVoice/0.5. Every time I send an SMS message using PyGoogleVoice, I get a separate email asking me to verify that the login was really me. Even after I say yes, it sends a verification email with the next use of it. I ended up replacing my User-Agent with the following to get around it (which came from my browser):
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
It would be nice if there were a more permanent solution, or a config entry to set it manually.

@kb9mwr
Copy link

kb9mwr commented Nov 26, 2016

You need to enable less secure apps in google.

@rtaft
Copy link
Author

rtaft commented Nov 28, 2016

I already have it enabled. This shows up as 'New sign-in on Unknown OS' in the security events even with it enabled.

@chris001
Copy link

Would you need each user be able to set their own user agent.

@rtaft
Copy link
Author

rtaft commented Feb 10, 2017

No, it just needs to be set to something that doesn't trigger the security notifications in the code.

@chris001
Copy link

OK because there's a way to have it be per-user or one setting for all users. The problem with one setting for all users is the browser versions change over time, while that one browser version would be stuck at the browser version selected today. Eventually a user will most likely want to change that browser version to match, for example, their actual browser version that they normally use when logging into gv from their computer, so that it doesn't trigger a security warning for "new browser detected during login". So it's a dilemma.

@rtaft
Copy link
Author

rtaft commented Feb 10, 2017

Ah, I see what you mean now. I suppose it depends on Google Voice. If there is a single line for all users, will you only get a security message during the first SMS and then none after accepting it, or will you get a message after every SMS like "PyGoogleVoice/0.5" does? If you do it user based, then I assume that this is a 3rd party app running on a server that is not the users own desktop or coming from the users own IP. In that case would you still get a security message even if you manually change the User Agent, and if so, would you get it once, or multiple times? In my case, the service is running on the same computer and network that I have an authorized browser on using that browsers User-Agent.

@chris001
Copy link

chris001 commented Feb 10, 2017

The only way to find out whether a real browser user-agent will cause one security message or an endless stream of them, is to try it. GV seems to alert you any time it appears your account is being logged into by someone other than you, the way it decides it's someone else is, it determines if the login is from a previously unseen device, browser/operating system, or possibly from a far away, new IP address/location.
Currently however gv login is temporarily broken due to the shiny new version of the gv web login page which has shifted things around slightly. Is login working for you?

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

3 participants