Skip to content
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

2FA ERROR: Authenticate => Invalid Token! Failed IP #1337

Open
4ezb2 opened this issue Dec 10, 2023 · 1 comment
Open

2FA ERROR: Authenticate => Invalid Token! Failed IP #1337

4ezb2 opened this issue Dec 10, 2023 · 1 comment

Comments

@4ezb2
Copy link

4ezb2 commented Dec 10, 2023

short bug description:

2FA ERROR: Authenticate => Invalid Token! Failed IP ::ffff:127.0.0.1: {"error":"Invalid token."}

steps to reproduce the behavior:

  1. enable 2FA
  2. after clicking on "verify", my first OTP is successful
  3. settings page changes from "enable 2FA" to "disable 2FA", indicating that my 2FA should work going forward
  4. see error: after starting new RTL session in my browser. RTL accepts my password like always, but does not accept my entered OTP, and after several attempts it locks the login for 30min

my logs

show this error message every time I retried the above step 4:
2FA ERROR: Authenticate => Invalid Token! Failed IP ::ffff:127.0.0.1: {"error":"Invalid token."}

environment:

  • Version of RTL = 0.15.0
  • Version of CLN = 23.11
  • Browser Firefox
  • Operating system = ubuntu server

additional context: 1. RTL config, 2. CLN config, 3. nginx config, 4. UFW rules

  1. relevant parts of my RTL config. Note that, changing the "lnServerUrl" to https://127.0.0:3001 did not work either

{
"port": "3000",
"defaultNodeIndex": 1
},
},
"Settings": {
"lnServerUrl": "https://localhost:3001"
}
}
],
"multiPassHashed": [redacted],
"secret2fa": [redacted]
}

  1. relevant parts of my CLN config file are:

clnrest-port=3001 # REST Server
clnrest-protocol=https

  1. relevant parts of my /etc/nginx/streams-enabled/rtl.conf are:

upstream rtl {
server 127.0.0.1:3000;
}
server {
listen 3002 ssl;
proxy_pass rtl;
}

  1. my firewall rule.
    sudo ufw allow from 192.168.0.0/24 to any port 3002 comment 'Allow RTL from LAN'

final words:

after removing the "secret2fa" configuration line, my RTL still runs perfectly again. But of course, I'd be much happier if 2FA would work too. So any pointers or suggestions to solve my 2FA issue would be much appreciated. Thanks!

@jfrader
Copy link

jfrader commented Jan 23, 2024

Same thing happens to me, except it works for a few days, and then it starts to not work for the first section of the code timer, and then finally after more days it never works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants