-
Notifications
You must be signed in to change notification settings - Fork 189
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
Cant make API token. #269
Comments
Are you running the latest version (0.4.1)? |
Pip install --upgrade hangups and see if that fixes it. 0.4.1 uses a different authentication mechanism with a hardcoded API key. |
Okay, I've been working through this issue, following what I saw in issue #260. I think faking the browser and login page is not going to work as a general solution. In my case, my organization uses Google's facility for shunting the user to/from our own Shibboleth, so I see a different login page. I don't see a way to get a token right now, other than to follow @dequis original video and copy the token. But for that to work, we need to go back to the old login code, or at least have a way to run it. Really pretty stumped here. |
If you can get the token manually, you can create the |
OK, so after some fiddling I worked this out -- sorry, I'm no oauth expert, but maybe some others looking at this thread aren't, either. The token returned in the cookie from: is an auth token, not a refresh token. You can't just paste it into refresh_token.txt. What I did was was short circuit _get_authorization_code in auth.py and set the authorization_code directly to the value returned in the programmatic_auth page. The code then goes through the rest of _auth_with_code and writes a new refresh token that works. It might be worth adding a path to the code where it asks for your credentials as usual and tries to fake being a browser, and if that fails, then it just prints out the link + instructions for you to "do it yourself in a real browser", finally prompting you for the auth code. |
I tried to install Pickups tonight, and I am getting a hangups error which I think is related to this issue. I am not quite a Python guru, so I hope this error log helps the resolution of this:
I am running the most recent version of hangups on a VPS running gentoo, and I can provide more information as requested. |
Hello.
Today cant not run hangups.
I think google something change about api token.
Below URL didnt work.
https://accounts.google.com/o/oauth2/auth?redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=936475272427.apps.googleusercontent.com&response_type=code&scope=https%3A%2F%2Fwww.google.com%2Faccounts%2FOAuthLogin
How can make token?
PLZ help me.
The text was updated successfully, but these errors were encountered: