-
Notifications
You must be signed in to change notification settings - Fork 62
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
Login and Sync does not work anymore #28
Comments
@moritzgloeckl while debugging the code I noticed that I did not find any fix yet but I'll keep you up-to-date! |
It seems like now they are using google captcha |
Hello, any progress on fixing this? thanks |
I'm having the same issues as of today as well; |
same problem here, what I obtain after correctly entered my login info is the following:
|
got this email from overleaf
They have added google recaptcha on login page. |
I am having the same issue with my own Overleaf backup tool (forked from tbmihailov's and in which I took some login code from this repo) except that I get a "Bad Request" response. |
another way to overcome this problem is to open up a browser window and ask the user to log in on login we can grab the cookie and use that |
Hello everyone and thank you for your research on this. I'm currently a bit busy, hence why I'm only replying now, sorry about that. Since they added reCaptcha it'll probably be quite hard to still have the authentication on the command line. Guess it's nearly impossible, if there's not an official tool by Google to have this built in. So we probably need to extract the authentication by opening a browser window as mentioned by @talhajunaidd - I'm gonna think of a way on how to do that, it's probably not that easy either and will take some time. But I'll leave this open so if you all have any suggestions feel free to comment here (PRs are always welcome too!). Thanks, |
@moritzgloeckl using a selenium based login would work definitely! |
@clagger Selenium would be an option, but I think it'll add a huge dependency and the user is required to have specific browser installed. I'm rather thinking towards having a Qt-based web view with nothing more than just rendering the page and extracting the cookie once login was successful. I'm gonna come up with a quick POC and see if that would work! |
@moritzgloeckl I've done a little POC on it I'm able to grab the cookies. please review the gist https://gist.github.com/talhajunaidd/25d657c63268d7e3b668c28cd2a18540 |
@talhajunaidd Yes this is exactly what I was thinking. So I will add something like this to overleaf-sync hopefully soon. On which OS did you test this? It would be nice to have at least Linux, Mac, and Windows sorted to make sure this works as expected. |
I wanted to try @talhajunaidd's solution on Windows but getting PyQt5 to work under Anaconda seems to be a pain on my machine. I'm getting
As was also mentioned by @talhajunaidd, it's pretty straightforward to just grab the relevant information to build the auth cookie (namely the 'GCLB' and 'overleaf_session2' fields) in a regular browser using Web Developer Tools. Sadly, probably easier than to get PyQt5 to work on my end... |
I've tested it on Linux. |
Hello @everyone, I have pushed a beta branch called |
Can you please create a MR so that it's easy to review. |
@talhajunaidd I've created a PR for this issue. |
@moritzgloeckl can we please put a please? |
Hello everyone, great news a fix has been developed and a new release pushed to PyPi. Please make sure you're using the now latest version Thank you to @talhajunaidd and @ndgnuh for reviewing the PR and testing the new changes. I'd like to invite everyone to test the new login flow, and if you should notice any bugs, please create a new bug ticket. This bug ticket will be closed. |
I noticed that the project isn't querying anymore.
Then I tried to renew the oauth token but the login is also failing (credentials are 100% correct - works via website).
A fix for this would be nice - thanks Moritz! :)
The text was updated successfully, but these errors were encountered: