Hi Master,
I have looked thru the 2FA codes shared by Bruce earlier. And now i have questions, I use the goggle authenticator, when i use the same secret key on different userid, i can use any of the generated TOTP. Looks like they are the same TOTP. I know that i can change the secret key to distinguish it. But, what is the best practices on the secret key? Let the user simply enter the secret key that they liked? or is there a way that we can control on the secret key, maybe auto generated?? and what if user forgot the last secret key enter?
But, when i refer to this link https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/242-two-factor-authentication-using-powerbuilder#!kmt-start=10 under high level overview. There are this statement(see below in red), it confused me, so, the secret key is fix/static for the c/s application? cannot be changed?
".................... Your application would not show the secret key to the user, it's only shown in the sample app so you can try different values."
Second question, after the QR code generated, next is to register to goggle authenticator, it seemed, for c/s application, user only need to do once to register the app, and from there onward , just need to enter user id password and TOTP, isnt it? If yes, then, what will happen if user generate qr code and register again, in the next login? I would assume, goggle authenticator does not allow that? I tried, and it seemed, not allow to overwrite the existing one. However, user can delete the account and scan the qr code again. So, this is not secure anymore, isnt it?
Lastly, i am using the sample code from https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/242-two-factor-authentication-using-powerbuilder#!kmt-start=10
And guess what, i didnt modified Bruce codes, initially when i run it, i got the token matching w the authenticator. After several hours, i tried run the app again, it gave me different token. Why is like that?
Please advice.
Thank you.