oneuptime icon indicating copy to clipboard operation
oneuptime copied to clipboard

2FA/Two Factor Auth based on TOTP Cant Be Verified

Open rezytijo opened this issue 1 year ago • 2 comments

I'm trying to add Two Factor Auth for my accounts on Oneuptime.com and OneUptime on Premise but it still won't verify.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'User Profile'
  2. Click on 'Two Factor Auth'
  3. Create Two Factor Auth and put name on it
  4. Scan QR Code using Microsoft Authenticator or Another TOTP Client
  5. Try to Verify and and got invalid code

Expected behavior Get Verified on Two Factor Authentication

Screenshots image

Desktop (please complete the following information):

  • OS: [Windows]
  • Browser [Chrome
  • Version [127.0.6533.89 ]

Deployment Type This issue appear on SaaS (at https://oneuptime.com) and self hosted on version 7.0.2928

rezytijo avatar Aug 06 '24 07:08 rezytijo

today I found the solution, I tried using another TOTP Client such as Microsoft Auth, Authy and Google Auth.

Surprisingly Google Auth gives a different OTP code from other TOTP Clients, I don't know why this happens, after I tried to verify it with the OTP from Google Auth, it was finally verified by OneUptime

So the solution to this problem currently is to use GOOGLE AUTH

rezytijo avatar Aug 07 '24 05:08 rezytijo

Sorry I need to Reopen This Issue, i found something wrong again. After i Verify and Activate the 2FA i cant login to my account, its look like this, lucky me because I used it on a dummy account, imagine if i use 2FA on Admin Account

image

rezytijo avatar Aug 08 '24 02:08 rezytijo

This is fixed. Thank you for reporting. Will be released today. https://github.com/OneUptime/oneuptime/commit/cc432dfa1c9e06c270173c578f53112136d5e92f

simlarsen avatar Aug 15 '24 16:08 simlarsen