GithubHelp home page GithubHelp logo

Unable to Login about geeknote HOT 14 OPEN

def-mycroft avatar def-mycroft commented on August 16, 2024 7
Unable to Login

from geeknote.

Comments (14)

pipakin avatar pipakin commented on August 16, 2024 2

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

from geeknote.

ticklemynausea avatar ticklemynausea commented on August 16, 2024 2

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.

ejsexton82 avatar ejsexton82 commented on August 16, 2024 1

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.

shaunpatel avatar shaunpatel commented on August 16, 2024

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.

def-mycroft avatar def-mycroft commented on August 16, 2024

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.

jeffkowalski avatar jeffkowalski commented on August 16, 2024

Likely duplicate of #372

from geeknote.

def-mycroft avatar def-mycroft commented on August 16, 2024

from geeknote.

DataThinkMonkey avatar DataThinkMonkey commented on August 16, 2024

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.

karimone avatar karimone commented on August 16, 2024

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.

aprouzeau avatar aprouzeau commented on August 16, 2024

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.

pipakin avatar pipakin commented on August 16, 2024

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

from geeknote.

rgutzen avatar rgutzen commented on August 16, 2024

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

from geeknote.

adrcad avatar adrcad commented on August 16, 2024

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

from geeknote.

NGenetzky avatar NGenetzky commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.