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
Unable to login - Codeforces javascript redirect issue #143
Comments
I thought that it requires cookie to verify identity. I tested serveral ways to send with cookie by Javascript but failed. |
I am not sure that hardcoded cookie usage is a good idea. Codeforces can revoke it or change the algorithm at any moment. |
I also doubted about it. If Codeforces changes the seed rapidly or randomly, the problem may be super difficult. But, at lease previous 2 days, the seed weren't changes. |
I managed somehow to overcome the redirect issue, but then, https://github.com/xalanq/cf-tool/blob/master/client/login.go#L78-L87 this block of params isn't accepted anymore. It throws 403 error (i.e. Request recognized but not authorized). Looks like someone will have re-research (if that's a term) the whole login process again |
Please tell me how you solved the redirect problem. I developed this kind of software, too. I can use this method to pass the verification and try to figure out the apis of 'login'. |
I used selenium web driver with |
I use external window and finally solved the problem. https://github.com/CodeforcesContestHelper/CCHv2/blob/dev/js/authorize.js#L82:L91 Here are the data I used to enter, quite similar with how login.go does, and I can login after the verification. |
Codeforces disabled redirect |
Oh damn |
Useless work :( But at lease we found a way to avoid redirection! |
Yup.. learning everyday. So I'll close this then :) |
I am facing the same issue. Did anyone resolve this? Can you please tell me what to do? |
The solution is to decrypt the codes in the redirect page and get the right key. You can search for the algorithm in some forks of this project. |
Can you help me by providing the procedure to decrypt and fix it? Sorry if this sounds novice. |
Recently codeforces updated there web service to redirect through javascript to destination page. Because of this, the
GET
returns the page that redirects (not the final landing page) hence, the command line promptsUnable to find csrf
.This is what it returns:
Can you please update the tool to handle this ?
Thanks
The text was updated successfully, but these errors were encountered: