37
Views
6
Comments
[TwoFactorAuthenticator] Always getting "Invalid OTP" probably related to timezone
Question
twofactorauthenticator
Service icon
Forge asset by Babu Basha
Application Type
Service

I'm always getting "invalid OTP" possibly related to timezone.

Could you give some guidance ?

I already tried to change the date time to utc using timezone forge component:

2018-06-05 16-54-03
Maria da Graça Peixoto

Hi! 

Are you sure you are getting the right "secret" ? 

2018-11-06 14-42-45
Stijn Poppe

the secret that is passed tot TOTP_Validate is the one that got generated when enabling the 2FA for my user.  Is stored in UserSecret.Secret

2018-11-06 14-42-45
Stijn Poppe

extra information:

  I'm working in an on premise environment.  Issue occurs here.

but when deploying to my personal environment (outsystems cloud) everything works as expected.

any suggestions are welcome ;-)

2018-06-05 16-54-03
Maria da Graça Peixoto

That is an important information, you may have problems in the environment version of component. 
Have you seen in the service center if there are any message in the error log or the general log ?


2018-11-06 14-42-45
Stijn Poppe

error log:

2018-11-06 14-42-45
Stijn Poppe

previously posted screenshot clarified now.  time of log is de time the log was created.  Started is the time the worker process was started.  So this is not causing the issue.

Probably issue is in the TOTP.net component

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.