I found the reason and it is interesting. Only 30 seconds is generating valid code. No successful result for below other cases.
totp-period: 31 : not working totp-period: 60 : not working *totp-period: 30 : working* totp-period: 20 : not working Murat BÜLBÜL <[email protected]>, 11 Tem 2020 Cmt, 14:31 tarihinde şunu yazdı: > Hi, > > I hope you are doing well. > > Is there any problem with TOTP 1.2.0? In my environment, there are two > different containers, mysql and guacamole. OTP code does not match even if > system and containers' time are the same. > > I did not catch any errors even after debug mode was enabled. Any idea? Is > this java timezone issue? > > admin> docker exec -it mysql date > > Sat Jul 11 14:24:05 +03 2020 > > admin> docker exec -it guacamole date > > Sat Jul 11 14:24:06 +03 2020 > > admin> date > > Cts Tem 11 14:24:07 +03 2020 > > MariaDB [guacamole_db]> select * from guacamole_user_attribute; > > +---------+-------------------------+----------------------------------+ > > | user_id | attribute_name | attribute_value | > > +---------+-------------------------+----------------------------------+ > > | 1 | guac-totp-key-confirmed | false | > > | 1 | guac-totp-key-secret | A63XG45HXMUGZBF2YNBEM4MYVQHYLJFU | > > | 2 | guac-totp-key-confirmed | false | > > | 2 | guac-totp-key-secret | R2OZG6LBTOHHZWOMCAKPLOO5KSWPRUVK | > > +---------+-------------------------+----------------------------------+ > > > > 14:23:13.398 [https-openssl-nio-8443-exec-5] INFO > o.a.g.r.auth.AuthenticationService > - User "test" successfully authenticated from 10.100.100.1. > > 14:23:28.140 [https-openssl-nio-8443-exec-3] INFO > o.a.g.r.auth.AuthenticationService > - User "test" successfully authenticated from 10.100.100.1. > > -- > > Murat BÜLBÜL > > -- Murat BÜLBÜL Presales Engineer
