mirror of
https://github.com/fosrl/pangolin.git
synced 2026-11-13 02:57:19 -06:00
Unable to setup 2FA #38
Closed
opened 2025-11-13 11:48:14 -06:00 by GiteaMirror
·
9 comments
No Branch/Tag Specified
main
dependabot/npm_and_yarn/npm-dependencies-adef1355ca
dependabot/go_modules/install/go-install-dependencies-1560069833
1-27
dependabot/npm_and_yarn/node-forge-1.4.3
feat/sync-idp-user-dir
l10n_dev
dev
website-checkout
dependabot/github_actions/github-actions-dependencies-6e53f9d9a5
dependabot/npm_and_yarn/node-forge-1.4.2
dependabot/github_actions/github-actions-dependencies-0c219a018e
extern-ws
1.26.0
1.26.0-rc.0
1.25.3
1.25.2
1.25.1
1.25.0
1.25.0-rc.0
1.24.0
1.24.0-rc.0
1.23.0
1.23.0-rc.0
1.22.2
1.22.1
1.22.0
1.22.0-rc.0
1.21.1
1.21.0
1.21.0-rc.0
1.20.0
1.20.0-rc.0
1.19.4
1.19.3
1.19.2
1.19.1
1.19.0
1.19.0-rc.1
1.19.0-rc.0
1.18.4
1.18.3
1.18.2
1.18.1
1.18.0
1.18.0-rc.0
1.17.1
1.17.0
1.17.0-rc.0
1.16.2
1.16.1
1.16.0
1.16.0-rc.0
1.15.4
1.15.3
1.15.2
1.15.1
1.15.0
1.15.0-rc.0
1.14.1
1.14.0
1.14.0-rc.0
1.13.1
1.13.0
1.13.0-rc.0
1.12.3
1.12.2
1.12.1
1.12.0
1.12.0-rc.0
1.11.1
1.11.0
1.10.3
1.10.2
1.10.1
1.10.0
1.9.4
1.9.3
1.9.2
1.9.1
1.9.0
1.8.0
1.7.3
1.7.2
1.7.1
1.7.0
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.0
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
1.0.0-beta.15
1.0.0-beta.14
1.0.0-beta.13
1.0.0-beta.12
1.0.0-beta.11
1.0.0-beta.10
1.0.0-beta.9
1.0.0-beta.8
1.0.0-beta.7
1.0.0-beta.6
1.0.0-beta.5
1.0.0-beta.4
1.0.0-beta.3
1.0.0-beta.2
1.0.0-beta.1
Labels
Clear labels
api
authentication
bug
config
dependencies
docker
documentation
enhancement
good first issue
help wanted
Improvement
Look Into
needs investigating
networking
new feature
non-critical bug
potential bug
pull-request
question
reverse proxy
Security
stale
ui
wontfix
Mirrored from GitHub Pull Request
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/pangolin#38
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @nixielectra on GitHub (Jan 28, 2025).
Hi,
I have an issue as per title. Before this I'm able to use the 2FA in previous VPS, but today I changed the provider and start from scratch to setup Pangolin. I'm using Vaultwarden for the TOTP and latest version of the Pangolin. I've tried use the full link (otpauth://totp/Pangolin:admin%40domain.com?secret=HT3FZGOTD5Z2GAGSKI2P7CTU24YHDLX&issuer=Pangolin) and just the secret (HT3FZGOTD5Z2GAGSKI2P7CTU24YHDLX) but both throw an error as below:
@oschwartz10612 commented on GitHub (Jan 28, 2025):
I just tested and I was able to do it using Bitwarden myself using the
otpauth://totp/Pangolin:owen%40txv.io?secret=63RXYDJTOJSLCJB4B3COSL7NM4TJUYX3&issuer=PangolinWhat version of Pangolin are you using?
beta.8?If you can still not get it to work, can you see if you are getting any logs from pangolin?
sudo docker compose logs@nixielectra commented on GitHub (Jan 28, 2025):
Yes I'm using
beta.8. Nothing in Pangolin log but Traefik throw thistraefik | xx.xxx.xxx.xx - - [28/Jan/2025:15:16:44 +0000] "POST /api/v1/auth/2fa/enable HTTP/2.0" 400 119 "-" "-" 17 "api-router@file" "http://pangolin:3000" 11ms.@miloschwartz commented on GitHub (Jan 28, 2025):
Does this happen consistently if you try to request a new TOTP secret more than once?
@nixielectra commented on GitHub (Jan 29, 2025):
Yesterday I've tried more than 10x. Today I deleted everything included volumes and images then start again but same error 😔
@nixielectra commented on GitHub (Jan 29, 2025):
I just realized that my VPS timedate didn't sync with NTP thus there is a different ~1minute10seconds with my local server. I think this is the issue right?
VPS

Local

@oschwartz10612 commented on GitHub (Jan 29, 2025):
Oh yes really good catch! The TOTP algorithm is based on the time so if they are out of sync you will get different expected codes. I bet if you sync up your times it will work correctly.
@nixielectra commented on GitHub (Jan 29, 2025):
Okay, already submitted a ticket to open port 123 because they blocked it, will update here the result later.
@nixielectra commented on GitHub (Jan 30, 2025):
After enabled the port and NTP, the 2FA able to work correctly. I will close this as non issue. Thanks @oschwartz10612 @miloschwartz
@yann117 commented on GitHub (Apr 26, 2025):
Thank you for this topic, it helped me find out what was my issue.
My self-hosted server was using a different NTP pool and was therefore off for a few seconds, which made the OTP setup failing for the same reason.
Without this "issue" I would not be able to understand what was the problem.
Maybe put a note in Pangolin documentation, to give this information as a basic troubleshooting help -> "validate your server time is sync if TOTP fails".