geeknote icon indicating copy to clipboard operation
geeknote copied to clipboard

Unable to Login

Open def-mycroft opened this issue 9 years ago • 14 comments

Hello,

I'm just installed this on Ubuntu 16.04. Can't login.

I'm able to input my username / password and skip the two-factor authentication, and get no message after logging in. Using "geeknote logout" after login attempt returns "you are already logged out."

Thanks!!

Edit: 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.

def-mycroft avatar Dec 21 '16 21:12 def-mycroft

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?

shaunpatel avatar Dec 22 '16 18:12 shaunpatel

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.

def-mycroft avatar Dec 22 '16 18:12 def-mycroft

Likely duplicate of #372

jeffkowalski avatar Dec 22 '16 18:12 jeffkowalski

The main reason I started a new issue is because that issue included an error message, while mine did not.

On Thu, Dec 22, 2016 at 12:37 PM, Jeff Kowalski [email protected] wrote:

Likely duplicate of #372 https://github.com/VitaliyRodnenko/geeknote/issues/372

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/VitaliyRodnenko/geeknote/issues/375#issuecomment-268862301, or mute the thread https://github.com/notifications/unsubscribe-auth/ATHxLEw6g9wLCnj9m8734Tmn5aVNoo1eks5rKsNSgaJpZM4LTZTh .

-- Joseph Dasenbrock

def-mycroft avatar Dec 22 '16 19:12 def-mycroft

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.

DataThinkMonkey avatar Dec 30 '16 15:12 DataThinkMonkey

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)

karimone avatar Jan 02 '17 05:01 karimone

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.

aprouzeau avatar Jan 09 '17 09:01 aprouzeau

(Copied from #372)

#374

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.

pipakin avatar Jan 10 '17 20:01 pipakin

My fix should also work for tfa, though I don't have it enabled, so I can't prove that.

pipakin avatar Jan 10 '17 20:01 pipakin

@pipakin: Had the same problem (as first time user), no tfa, and with your fix it works fine. Thanks!

rgutzen avatar Jan 17 '17 21:01 rgutzen

@pipakin : Same problem (login), cherry-picked your fix and worked fine ! Thanks a lot !

adrcad avatar Apr 10 '17 09:04 adrcad

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

NGenetzky avatar Jun 15 '17 13:06 NGenetzky

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.

ticklemynausea avatar Jul 05 '17 10:07 ticklemynausea

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()

ejsexton82 avatar Jan 07 '18 22:01 ejsexton82