Comments (14)
(Copied from #372)
This should fix it. It was a csrf token failure. Evernote was outputting two csrf token hidden fields that needed to be sent along with the request.
Or alternatively feel free to just use my branch. It doesn't look like pull requests have been accepted here for some time.
from geeknote.
Hi. I could enter my user and password, but it kept asking me my mfa codes (which I didn't even had enabled). I enabled mfa in evernote, and still it doesn't work. Username and password is correctly validated, though. If I don't enter the correct details, I don't get the mfa prompt.
from geeknote.
Lines 232 - 234 are wrong. Logging in successfully always seems to result in a 302 redirect now, so that can no longer be used as an indicator of whether Two-Factor Authentication is required or not. I commented out those lines for now, and was able to login successfully:
# if response.status == 302:
# the user has enabled two factor auth
# return self.handleTwoFactor()
from geeknote.
Also had the same issue. I use geek note regularly and normally do not have to enter username/password information. However, I was prompted to do so today and was unable to login successfully, even after setting up two-factor auth. Did something change with Evernote?
from geeknote.
One thing I should note is that I recently reinstalled my Ubuntu installation, clearing all old files. I wonder if there is an issue there with the geeknote/evernote connection because it previously had a connection? It has been a few months since I've used geeknote.
from geeknote.
Likely duplicate of #372
from geeknote.
from geeknote.
I have the same issue on Fedora 25 and Ubuntu 16.10 both new installs. 2 Factor is disable, however I am prompted. I press enter at 2nd auth request, script ends with no error and I am not logged in.
from geeknote.
The error seems the handling of the response. Something is changed on evernote oauth.
Here the code that trigger the two factor authentication https://github.com/VitaliyRodnenko/geeknote/blob/master/geeknote/oauth.py#L232
We should check the oauth process if still working as expected (here to test https://dev.evernote.com/doc/articles/authentication.php)
from geeknote.
I have the same issue on Mac OS Sierra. I activate 2 factor auth, and it doesn't display any errors, but I am not logged in.
from geeknote.
My fix should also work for tfa, though I don't have it enabled, so I can't prove that.
from geeknote.
@pipakin: Had the same problem (as first time user), no tfa, and with your fix it works fine. Thanks!
from geeknote.
@pipakin : Same problem (login), cherry-picked your fix and worked fine ! Thanks a lot !
from geeknote.
Does not work with 2FA. @pipakin
Login:
Password:
Two-Factor Authentication Code: 566771
: Allow Access...Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/geeknote.py", line 883, in main
User().login(**ARGS)
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/geeknote.py", line 35, in wrappe
r
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/geeknote.py", line 397, in login
if self.getEvernote().auth():
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/geeknote.py", line 151, in auth
self.authToken = GNA.getToken()
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/oauth.py", line 140, in getToken
self.allowAccess()
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a-py2.7.egg/geeknote/oauth.py", line 251, in allowAccess
token = "&" + urlencode({ 'csrfBusterToken': tree.xpath("//input[@name='csrfBusterToken']/@value")[0]}) + "&" + urlencode({ 'csrfBusterToken': tree.xpath("//input[@name='csrfBusterToken']/@value")[1]})
IndexError: list index out of range
from geeknote.
Related Issues (20)
- Cannot login without two-factor authentication HOT 11
- Code for Geeknote online?
- Always Authorizing HOT 6
- Unable to login behind a corporate proxy HOT 1
- gnsync does not work for plain HOT 2
- Recommend other fork HOT 4
- Is there a '-format plain' for 'geeknote edit'
- setup.py test failes at openSUSE Tumbleweed
- python-salm install
- Geeknote 2.0.10 requires urllib3<1.22 but 1.22 is installed HOT 1
- Not good and not working ...half cooked
- Doesn't Login HOT 1
- put markdown files on /tmp prevent notes recovery HOT 2
- We have disabled the Geeknote app for all Evernote accounts HOT 4
- Cannot login HOT 7
- Install fails on macOs High-Sierra, Anaconda Python HOT 4
- Unicode errors
- SSL cert on geeknote.me is expired
- Can't install on Ubuntu 20.04 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geeknote.